Bugfix spec test

This commit is contained in:
Jesse C. Fisher 2021-07-08 01:33:16 -07:00
parent 1e34a17bd2
commit e8a03473f7

View File

@ -1,5 +1,3 @@
require 'rails_helper'
RSpec.describe Table, type: :model do RSpec.describe Table, type: :model do
before :all do before :all do
@table = FactoryGirl.create(:table) @table = FactoryGirl.create(:table)
@ -18,15 +16,15 @@ RSpec.describe Table, type: :model do
end end
it '#seats returns Seats collection' do 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 end
it '#users returns Users collection' do 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 end
it '#games returns Games collection' do 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 end
it '#current_game returns a Game' do it '#current_game returns a Game' do