diff options
author | Nick Kallen <nkallen@nick-kallens-computer-2.local> | 2008-05-18 16:47:55 -0700 |
---|---|---|
committer | Nick Kallen <nkallen@nick-kallens-computer-2.local> | 2008-05-18 16:47:55 -0700 |
commit | 7feff4e7b52fbef356426d22257af161704315ad (patch) | |
tree | db907c2bc27dc406d08513d40f8e75cd810a91f9 /spec/arel/unit/relations/join_spec.rb | |
parent | 32ad530b825f4cdac51e579306548ca695471039 (diff) | |
download | rails-7feff4e7b52fbef356426d22257af161704315ad.tar.gz rails-7feff4e7b52fbef356426d22257af161704315ad.tar.bz2 rails-7feff4e7b52fbef356426d22257af161704315ad.zip |
performance enhancements
Diffstat (limited to 'spec/arel/unit/relations/join_spec.rb')
-rw-r--r-- | spec/arel/unit/relations/join_spec.rb | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/spec/arel/unit/relations/join_spec.rb b/spec/arel/unit/relations/join_spec.rb index d128dd0560..1698bf9647 100644 --- a/spec/arel/unit/relations/join_spec.rb +++ b/spec/arel/unit/relations/join_spec.rb @@ -7,23 +7,6 @@ module Arel @relation2 = Table.new(:photos) @predicate = @relation1[:id].eq(@relation2[:user_id]) end - - describe '==' do - before do - @another_predicate = @relation1[:id].eq(1) - @another_relation = Table.new(:cameras) - end - - it 'obtains if the two relations and the predicate are identical' do - Join.new("INNER JOIN", @relation1, @relation2, @predicate).should == Join.new("INNER JOIN", @relation1, @relation2, @predicate) - Join.new("INNER JOIN", @relation1, @relation2, @predicate).should_not == Join.new("INNER JOIN", @relation1, @another_relation, @predicate) - Join.new("INNER JOIN", @relation1, @relation2, @predicate).should_not == Join.new("INNER JOIN", @relation1, @relation2, @another_predicate) - end - - it 'is commutative on the relations' do - Join.new("INNER JOIN", @relation1, @relation2, @predicate).should == Join.new("INNER JOIN", @relation2, @relation1, @predicate) - end - end describe 'hashing' do it 'implements hash equality' do |