diff options
author | Nick Kallen <nkallen@nick-kallens-computer-2.local> | 2008-05-19 17:55:49 -0700 |
---|---|---|
committer | Nick Kallen <nkallen@nick-kallens-computer-2.local> | 2008-05-19 17:55:49 -0700 |
commit | 78b5b5783776f57a47e480db4bd83b15db988909 (patch) | |
tree | b0263e5e9f1f6b71bb69b4009d24c2d072910a2c /spec/arel | |
parent | e8966bf9a86afb82c658cedd7e4baffa3a15a856 (diff) | |
download | rails-78b5b5783776f57a47e480db4bd83b15db988909.tar.gz rails-78b5b5783776f57a47e480db4bd83b15db988909.tar.bz2 rails-78b5b5783776f57a47e480db4bd83b15db988909.zip |
some convenience methods
Diffstat (limited to 'spec/arel')
-rw-r--r-- | spec/arel/integration/joins/with_adjacency_spec.rb | 2 | ||||
-rw-r--r-- | spec/arel/integration/joins/with_aggregations_spec.rb | 4 | ||||
-rw-r--r-- | spec/arel/integration/joins/with_compounds_spec.rb | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/spec/arel/integration/joins/with_adjacency_spec.rb b/spec/arel/integration/joins/with_adjacency_spec.rb index 2fb5895a87..32109cc354 100644 --- a/spec/arel/integration/joins/with_adjacency_spec.rb +++ b/spec/arel/integration/joins/with_adjacency_spec.rb @@ -3,7 +3,7 @@ require File.join(File.dirname(__FILE__), '..', '..', '..', 'spec_helper') module Arel describe Join do before do - @relation1 = Table.new(:users) + @relation1 = Arel(:users) @relation2 = @relation1.alias @predicate = @relation1[:id].eq(@relation2[:id]) end diff --git a/spec/arel/integration/joins/with_aggregations_spec.rb b/spec/arel/integration/joins/with_aggregations_spec.rb index b4861b0c53..9e28237c3c 100644 --- a/spec/arel/integration/joins/with_aggregations_spec.rb +++ b/spec/arel/integration/joins/with_aggregations_spec.rb @@ -3,8 +3,8 @@ require File.join(File.dirname(__FILE__), '..', '..', '..', 'spec_helper') module Arel describe Join do before do - @relation1 = Table.new(:users) - @relation2 = Table.new(:photos) + @relation1 = Arel(:users) + @relation2 = Arel(:photos) @predicate = @relation1[:id].eq(@relation2[:user_id]) end diff --git a/spec/arel/integration/joins/with_compounds_spec.rb b/spec/arel/integration/joins/with_compounds_spec.rb index 3c17ab315d..acfe35b25e 100644 --- a/spec/arel/integration/joins/with_compounds_spec.rb +++ b/spec/arel/integration/joins/with_compounds_spec.rb @@ -3,8 +3,8 @@ require File.join(File.dirname(__FILE__), '..', '..', '..', 'spec_helper') module Arel describe Join do before do - @relation1 = Table.new(:users) - @relation2 = Table.new(:photos) + @relation1 = Arel(:users) + @relation2 = Arel(:photos) @predicate = @relation1[:id].eq(@relation2[:user_id]) end |