learn-co-curriculum / diy-json-serializer-lab

Other
0 stars 4 forks source link

Faker::Number update #16

Open ermarie opened 5 years ago

ermarie commented 5 years ago

spec/views/invoices_index_view_spec.rb line: 9 spec/views/ orders_index_view_spec.rb line: 10

Needs to be updated to

Product.create(:name => products.sample, :price => Faker::Number.between(from: 1, to: 1500))

ronsala commented 4 years ago

The same line is also in db/seeds.rb:12.

ronsala commented 4 years ago

Updating those 3 lines caused several tests to fail for me, and the products no longer rendered on the products index page. May require some additional changes.