From 0d70ce37e510c83d5fc42f88b04314f40d87fe96 Mon Sep 17 00:00:00 2001 From: Nick Kallen Date: Mon, 11 Feb 2008 23:09:15 -0800 Subject: rename substitute to bind since it 'binds' an object to a new relation. --- spec/active_relation/predicates/binary_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'spec/active_relation/predicates/binary_spec.rb') diff --git a/spec/active_relation/predicates/binary_spec.rb b/spec/active_relation/predicates/binary_spec.rb index 5d1e7d1223..599cfa2942 100644 --- a/spec/active_relation/predicates/binary_spec.rb +++ b/spec/active_relation/predicates/binary_spec.rb @@ -33,10 +33,10 @@ module ActiveRelation end end - describe '#substitute' do + describe '#bind' do it "distributes over the predicates and attributes" do - ConcreteBinary.new(@attribute1, @attribute2).substitute(@relation2). \ - should == ConcreteBinary.new(@attribute1.substitute(@relation2), @attribute2.substitute(@relation2)) + ConcreteBinary.new(@attribute1, @attribute2).bind(@relation2). \ + should == ConcreteBinary.new(@attribute1.bind(@relation2), @attribute2.bind(@relation2)) end end -- cgit v1.2.3