Bugfix spec test
This commit is contained in:
parent
1e34a17bd2
commit
e8a03473f7
@ -1,5 +1,3 @@
|
||||
require 'rails_helper'
|
||||
|
||||
RSpec.describe Table, type: :model do
|
||||
before :all do
|
||||
@table = FactoryGirl.create(:table)
|
||||
@ -18,15 +16,15 @@ RSpec.describe Table, type: :model do
|
||||
end
|
||||
|
||||
it '#seats returns Seats collection' do
|
||||
expect(@table.seats.class).to match Seat::ActiveRecord_Associations_CollectionProxy
|
||||
expect(@table.seats.class.to_s).to match "Seat::ActiveRecord_Associations_CollectionProxy"
|
||||
end
|
||||
|
||||
it '#users returns Users collection' do
|
||||
expect(@table.users.class).to match User::ActiveRecord_Associations_CollectionProxy
|
||||
expect(@table.users.class.to_s).to match "User::ActiveRecord_Associations_CollectionProxy"
|
||||
end
|
||||
|
||||
it '#games returns Games collection' do
|
||||
expect(@table.games.class).to match Game::ActiveRecord_Associations_CollectionProxy
|
||||
expect(@table.games.class.to_s).to match "Game::ActiveRecord_Associations_CollectionProxy"
|
||||
end
|
||||
|
||||
it '#current_game returns a Game' do
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user