From 6c89e3818d85e3169a7fb8de27b25357c2259881 Mon Sep 17 00:00:00 2001 From: Nick Kallen Date: Tue, 1 Jan 2008 16:44:33 -0800 Subject: integration test --- spec/predicates/binary_predicate_spec.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'spec/predicates') diff --git a/spec/predicates/binary_predicate_spec.rb b/spec/predicates/binary_predicate_spec.rb index 3d9a9b3b94..a044e43a84 100644 --- a/spec/predicates/binary_predicate_spec.rb +++ b/spec/predicates/binary_predicate_spec.rb @@ -32,9 +32,12 @@ describe BinaryPredicate do end describe '#to_sql' do - it '' do + it 'manufactures correct sql' do ConcreteBinaryPredicate.new(@attribute1, @attribute2).to_sql.should == ConditionsBuilder.new do - equals 'foo.attribute_name1', 'bar.attribute_name2' + equals do + column :foo, :attribute_name1 + column :bar, :attribute_name2 + end end end end -- cgit v1.2.3