diff options
Diffstat (limited to 'spec/engines/memory/unit/relations/where_spec.rb')
-rw-r--r-- | spec/engines/memory/unit/relations/where_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/engines/memory/unit/relations/where_spec.rb b/spec/engines/memory/unit/relations/where_spec.rb index b45c009d83..23aef5766e 100644 --- a/spec/engines/memory/unit/relations/where_spec.rb +++ b/spec/engines/memory/unit/relations/where_spec.rb @@ -14,7 +14,7 @@ module Arel it 'filters the relation with the provided predicate' do @relation \ .where(@relation[:id].lt(3)) \ - .let do |relation| + .tap do |relation| relation.call.should == [ Row.new(relation, [1, 'duck']), Row.new(relation, [2, 'duck']), @@ -27,7 +27,7 @@ module Arel @relation \ .where(@relation[:id].gt(1)) \ .where(@relation[:id].lt(3)) \ - .let do |relation| + .tap do |relation| relation.call.should == [ Row.new(relation, [2, 'duck']) ] |