From 0e86151b1a482c252c469a66d2fbfc804ad39919 Mon Sep 17 00:00:00 2001 From: Akira Matsuda Date: Thu, 20 Sep 2012 10:05:05 +0900 Subject: [PATCH] we're still supporting Ruby 1.8... --- .../models/active_record/active_record_relation_methods_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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