diff options
author | Bryan Helmkamp <bryan@brynary.com> | 2009-11-09 19:37:00 -0500 |
---|---|---|
committer | Bryan Helmkamp <bryan@brynary.com> | 2009-11-09 19:37:00 -0500 |
commit | 2eea340b2269aab85cead2a5e024d6ff9abd6c91 (patch) | |
tree | fd4d48c7ed840c195699bc04f89abb8f866fda49 | |
parent | 130188e67ce76e4ced60dc0331d2ac5bba6cdb74 (diff) | |
download | rails-2eea340b2269aab85cead2a5e024d6ff9abd6c91.tar.gz rails-2eea340b2269aab85cead2a5e024d6ff9abd6c91.tar.bz2 rails-2eea340b2269aab85cead2a5e024d6ff9abd6c91.zip |
Ruby 1.9: Improve the way we spec this
-rw-r--r-- | spec/arel/algebra/unit/relations/relation_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/arel/algebra/unit/relations/relation_spec.rb b/spec/arel/algebra/unit/relations/relation_spec.rb index 6bd7970e3f..cf6509fe6a 100644 --- a/spec/arel/algebra/unit/relations/relation_spec.rb +++ b/spec/arel/algebra/unit/relations/relation_spec.rb @@ -180,8 +180,8 @@ module Arel describe Relation::Enumerable do it "implements enumerable" do - check @relation.collect.should == @relation.session.read(@relation).collect - @relation.first.should == @relation.session.read(@relation).first + @relation.map { |value| value }.should == + @relation.session.read(@relation).map { |value| value } end end end |