diff options
author | Bryan Helmkamp <bryan@brynary.com> | 2009-11-09 19:24:40 -0500 |
---|---|---|
committer | Bryan Helmkamp <bryan@brynary.com> | 2009-11-09 19:24:40 -0500 |
commit | 976999cb980eb47ac5f297de043e2ed55248c2a5 (patch) | |
tree | 5d90073bd549f0e4a0a68d4a0569dba1a615825e /spec/arel/algebra | |
parent | 19d7ee3661a395b69d8ea233096da33bde166b62 (diff) | |
download | rails-976999cb980eb47ac5f297de043e2ed55248c2a5.tar.gz rails-976999cb980eb47ac5f297de043e2ed55248c2a5.tar.bz2 rails-976999cb980eb47ac5f297de043e2ed55248c2a5.zip |
Ruby 1.9: the constants must be qualified
Diffstat (limited to 'spec/arel/algebra')
-rw-r--r-- | spec/arel/algebra/unit/predicates/binary_spec.rb | 2 | ||||
-rw-r--r-- | spec/arel/algebra/unit/predicates/equality_spec.rb | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/spec/arel/algebra/unit/predicates/binary_spec.rb b/spec/arel/algebra/unit/predicates/binary_spec.rb index be4c1ac738..051aeeeb6e 100644 --- a/spec/arel/algebra/unit/predicates/binary_spec.rb +++ b/spec/arel/algebra/unit/predicates/binary_spec.rb @@ -4,7 +4,7 @@ module Arel module Predicates describe Binary do before do - @relation = Table.new(:users) + @relation = Arel::Table.new(:users) @attribute1 = @relation[:id] @attribute2 = @relation[:name] class ConcreteBinary < Binary diff --git a/spec/arel/algebra/unit/predicates/equality_spec.rb b/spec/arel/algebra/unit/predicates/equality_spec.rb index cfd04cd90c..7d1d79ff35 100644 --- a/spec/arel/algebra/unit/predicates/equality_spec.rb +++ b/spec/arel/algebra/unit/predicates/equality_spec.rb @@ -4,8 +4,8 @@ module Arel module Predicates describe Equality do before do - @relation1 = Table.new(:users) - @relation2 = Table.new(:photos) + @relation1 = Arel::Table.new(:users) + @relation2 = Arel::Table.new(:photos) @attribute1 = @relation1[:id] @attribute2 = @relation2[:user_id] end |