Skip to content

Commit

Permalink
Relations are different class names in Rails 4
Browse files Browse the repository at this point in the history
  • Loading branch information
tjchambers committed Nov 8, 2018
1 parent 8d526d8 commit 2c9a55f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/cases/self_grouping_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2c9a55f

Please sign in to comment.