Open ermarie opened 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))
The same line is also in db/seeds.rb:12.
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.
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))