From 2c9a55f3669fe46ea5e9a6d10533aab397ede928 Mon Sep 17 00:00:00 2001 From: Tim Chambers Date: Thu, 8 Nov 2018 15:40:14 -0800 Subject: [PATCH] Relations are different class names in Rails 4 --- test/cases/self_grouping_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/cases/self_grouping_test.rb b/test/cases/self_grouping_test.rb index 73f71d4..d116e10 100644 --- a/test/cases/self_grouping_test.rb +++ b/test/cases/self_grouping_test.rb @@ -95,7 +95,7 @@ class GroupedScope::SelfGrouppingTest < GroupedScope::TestCase describe 'Calling #group' do it 'returns a active record relation' do - assert_instance_of ActiveRecord::Relation, FactoryGirl.create(:employee).group + assert_instance_of ActiveRecord::Relation::ActiveRecord_Relation_Employee, FactoryGirl.create(:employee).group end describe 'with a NIL group_id' do