From e8a03473f777f4b4edb831edc214527c92dd2282 Mon Sep 17 00:00:00 2001 From: "Jesse C. Fisher" Date: Thu, 8 Jul 2021 01:33:16 -0700 Subject: [PATCH] Bugfix spec test --- spec/models/table_spec.rb | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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