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/engines/sql/unit/predicates/predicates_spec.rb | |
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/engines/sql/unit/predicates/predicates_spec.rb')
-rw-r--r-- | spec/arel/engines/sql/unit/predicates/predicates_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/arel/engines/sql/unit/predicates/predicates_spec.rb b/spec/arel/engines/sql/unit/predicates/predicates_spec.rb index 7d53351546..81c348357c 100644 --- a/spec/arel/engines/sql/unit/predicates/predicates_spec.rb +++ b/spec/arel/engines/sql/unit/predicates/predicates_spec.rb @@ -4,11 +4,11 @@ module Arel module Predicates describe Predicate do before do - @relation = Table.new(:users) + @relation = Arel::Table.new(:users) @attribute1 = @relation[:id] @attribute2 = @relation[:name] - @operand1 = Equality.new(@attribute1, 1) - @operand2 = Equality.new(@attribute2, "name") + @operand1 = Arel::Predicates::Equality.new(@attribute1, 1) + @operand2 = Arel::Predicates::Equality.new(@attribute2, "name") end describe "when being combined with another predicate with AND logic" do |