Skip to content

Commit 919a306

Browse files
authored
Fix chapter 8 - NoMethodError undefined method products (#59)
1 parent a51b34a commit 919a306

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

rails6/en/chapter08-improve-orders.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ First we update the `orders_controller_test` file:
148148
# ...
149149
class Api::V1::OrdersControllerTest < ActionDispatch::IntegrationTest
150150
setup do
151-
@order = products(:one)
151+
@order = orders(:one)
152152
@order_params = {
153153
order: {
154154
product_ids_and_quantities: [

rails6/es/chapter08-improve-orders.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ Primero actualizamos el archivo `orders_controller_test`:
149149
# ...
150150
class Api::V1::OrdersControllerTest < ActionDispatch::IntegrationTest
151151
setup do
152-
@order = products(:one)
152+
@order = orders(:one)
153153
@order_params = {
154154
order: {
155155
product_ids_and_quantities: [

rails6/fr/chapter08-improve-orders.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ Tout d'abord, nous mettons à jour le fichier `orders_controller_test`:
144144
# ...
145145
class Api::V1::OrdersControllerTest < ActionDispatch::IntegrationTest
146146
setup do
147-
@order = products(:one)
147+
@order = orders(:one)
148148
@order_params = {
149149
order: {
150150
product_ids_and_quantities: [

0 commit comments

Comments
 (0)