From f8ac74d9983d5b095721a2b426f7ac273bfc22e0 Mon Sep 17 00:00:00 2001 From: Aruna Date: Mon, 7 May 2018 15:04:09 -0700 Subject: [PATCH] adding tests for models --- app/models/customer.rb | 2 ++ test/fixtures/customers.yml | 28 ++++++++++++++-------------- test/fixtures/movies.yml | 12 ++++++------ 3 files changed, 22 insertions(+), 20 deletions(-) diff --git a/app/models/customer.rb b/app/models/customer.rb index 0b5277335..4930a8532 100644 --- a/app/models/customer.rb +++ b/app/models/customer.rb @@ -1,2 +1,4 @@ class Customer < ApplicationRecord + + end diff --git a/test/fixtures/customers.yml b/test/fixtures/customers.yml index c9ee4f795..b41d86feb 100644 --- a/test/fixtures/customers.yml +++ b/test/fixtures/customers.yml @@ -1,19 +1,19 @@ # Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html -one: - name: MyString +Mary: + name: Mary registered_at: 2018-05-07 14:24:47 - address: MyString - city: MyString - state: MyString - postal_code: MyString - phone: MyString + address: 945 21st + city: Seattle + state: Wa + postal_code: 98073 + phone: 424234123 -two: - name: MyString +Sally: + name: Sally registered_at: 2018-05-07 14:24:47 - address: MyString - city: MyString - state: MyString - postal_code: MyString - phone: MyString + address: 112 22st + city: sammamish + state: Wa + postal_code: 98074 + phone: 421234541 diff --git a/test/fixtures/movies.yml b/test/fixtures/movies.yml index 090b19e62..96cad9eee 100644 --- a/test/fixtures/movies.yml +++ b/test/fixtures/movies.yml @@ -1,13 +1,13 @@ # Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html one: - title: MyString - overview: MyString + title: star wars + overview: Science fiction release_date: 2018-05-07 - inventory: 1 + inventory: 10 two: - title: MyString - overview: MyString + title: Harry Porter + overview: Fiction release_date: 2018-05-07 - inventory: 1 + inventory: 12