Skip to content

Commit

Permalink
adding tests for models
Browse files Browse the repository at this point in the history
  • Loading branch information
aruna79 committed May 7, 2018
1 parent 604e3df commit f8ac74d
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 20 deletions.
2 changes: 2 additions & 0 deletions app/models/customer.rb
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
class Customer < ApplicationRecord


end
28 changes: 14 additions & 14 deletions test/fixtures/customers.yml
Original file line number Diff line number Diff line change
@@ -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
12 changes: 6 additions & 6 deletions test/fixtures/movies.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit f8ac74d

Please sign in to comment.