diff --git a/spec/models/active_record/active_record_relation_methods_spec.rb b/spec/models/active_record/active_record_relation_methods_spec.rb index f269df2..dbae6e5 100644 --- a/spec/models/active_record/active_record_relation_methods_spec.rb +++ b/spec/models/active_record/active_record_relation_methods_spec.rb @@ -37,7 +37,7 @@ if defined? ActiveRecord end context "when the scope returns an ActiveSupport::OrderedHash" do it "should not throw exception by passing options to count" do - -> { + lambda { @author.readers.by_read_count.page(1).total_count(:name, distinct: true) }.should_not raise_exception end