diff --git a/spec/models/table_spec.rb b/spec/models/table_spec.rb index 6fd39630..acb50931 100644 --- a/spec/models/table_spec.rb +++ b/spec/models/table_spec.rb @@ -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