diff options
author | Nick Kallen <nkallen@nick-kallens-computer-2.local> | 2008-05-05 13:00:50 -0700 |
---|---|---|
committer | Nick Kallen <nkallen@nick-kallens-computer-2.local> | 2008-05-05 13:00:50 -0700 |
commit | 680e080bb4399312f63a699d2f103632b41be927 (patch) | |
tree | e2f6bc304622aa6913479ef74f797c62cc43f4b1 /spec | |
parent | b9e90e4e55290172d7c5918319fd5fe35aa6a10e (diff) | |
download | rails-680e080bb4399312f63a699d2f103632b41be927.tar.gz rails-680e080bb4399312f63a699d2f103632b41be927.tar.bz2 rails-680e080bb4399312f63a699d2f103632b41be927.zip |
string passthrough for "group by"
Diffstat (limited to 'spec')
-rw-r--r-- | spec/arel/unit/relations/grouping_spec.rb | 1 | ||||
-rw-r--r-- | spec/arel/unit/relations/join_spec.rb | 17 |
2 files changed, 0 insertions, 18 deletions
diff --git a/spec/arel/unit/relations/grouping_spec.rb b/spec/arel/unit/relations/grouping_spec.rb index 66205b8f95..5f781727cf 100644 --- a/spec/arel/unit/relations/grouping_spec.rb +++ b/spec/arel/unit/relations/grouping_spec.rb @@ -20,7 +20,6 @@ module Arel describe 'when given a string' do it "passes the string through to the where clause" do - pending 'it should not quote the group clause' Grouping.new(@relation, 'asdf').to_sql.should be_like(" SELECT `users`.`id`, `users`.`name` FROM `users` diff --git a/spec/arel/unit/relations/join_spec.rb b/spec/arel/unit/relations/join_spec.rb index a538c8af68..d517da8c1f 100644 --- a/spec/arel/unit/relations/join_spec.rb +++ b/spec/arel/unit/relations/join_spec.rb @@ -203,23 +203,6 @@ module Arel end end end - - describe 'something really really complex' do - it '' do - users = @relation1 - photos = @relation2 - users_2 = users.alias - photos_2 = photos.alias - r = users \ - .join(photos) \ - .on(photos[:user_id].eq users[:id]) \ - .join(users_2) \ - .on(users_2[:id].eq photos[:user_id]) \ - .join(photos_2) \ - .on(users_2[:id].eq photos_2[:user_id]) - r.relation_for(photos[:user_id]).should == photos - end - end describe '[]' do describe 'when given an attribute belonging to both sub-relations' do |