diff --git a/test/fixtures/products.yml b/test/fixtures/products.yml index 78a46ce..2b0de69 100644 --- a/test/fixtures/products.yml +++ b/test/fixtures/products.yml @@ -1,11 +1,6 @@ # Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html -one: - name: MyString - description: MyString - price: 1.5 - -two: - name: MyString - description: MyString - price: 1.5 +valid: + name: "ODDS Whole Bean Coffee" + description: "Perfect start to your day" + price: 25.00 diff --git a/test/models/product_test.rb b/test/models/product_test.rb index 6c47465..dd1912c 100644 --- a/test/models/product_test.rb +++ b/test/models/product_test.rb @@ -2,11 +2,7 @@ class ProductTest < ActiveSupport::TestCase def setup - @product = Product.new( - name: "ODDS Whole Bean Coffee", - description: "Perfect start to your day", - price: 25.00, - ) + @product = products(:valid) end test "valid product" do