From 78b5b5783776f57a47e480db4bd83b15db988909 Mon Sep 17 00:00:00 2001 From: Nick Kallen Date: Mon, 19 May 2008 17:55:49 -0700 Subject: some convenience methods --- spec/arel/integration/joins/with_adjacency_spec.rb | 2 +- spec/arel/integration/joins/with_aggregations_spec.rb | 4 ++-- spec/arel/integration/joins/with_compounds_spec.rb | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'spec/arel') 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 -- cgit v1.2.3