add zone test-rspec

This commit is contained in:
Min Zeya Phyo
2017-03-24 21:28:57 +06:30
parent 3ec71e85fe
commit a247cd44eb
19 changed files with 108 additions and 4 deletions

View File

@@ -0,0 +1,8 @@
FactoryGirl.define do
factory :seat_tables do
name { Faker::StarWars.character }
order_by { Faker::Number.number(5)}
no_of_seater {Faker::Number.number(5)}
zone_id nil
end
end

6
spec/factories/zones.rb Normal file
View File

@@ -0,0 +1,6 @@
FactoryGirl.define do
factory :zone do
name { Faker::Lorem.word }
created_by { Faker::StarWars.character }
end
end