diff options
author | Nick Kallen <nkallen@nick-kallens-computer-2.local> | 2008-01-01 16:44:33 -0800 |
---|---|---|
committer | Nick Kallen <nkallen@nick-kallens-computer-2.local> | 2008-01-01 16:44:33 -0800 |
commit | 6c89e3818d85e3169a7fb8de27b25357c2259881 (patch) | |
tree | 2ffe9fbe8765239733a864646ce71f9551736151 /spec/predicates | |
parent | 0496a59e1fe0caf2d295defb588a00460cf15efb (diff) | |
download | rails-6c89e3818d85e3169a7fb8de27b25357c2259881.tar.gz rails-6c89e3818d85e3169a7fb8de27b25357c2259881.tar.bz2 rails-6c89e3818d85e3169a7fb8de27b25357c2259881.zip |
integration test
Diffstat (limited to 'spec/predicates')
-rw-r--r-- | spec/predicates/binary_predicate_spec.rb | 7 |
1 files changed, 5 insertions, 2 deletions
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 |