diff options
author | Bryan Helmkamp <bryan@brynary.com> | 2009-05-17 17:53:40 -0400 |
---|---|---|
committer | Bryan Helmkamp <bryan@brynary.com> | 2009-05-17 17:53:40 -0400 |
commit | d2988420fc6dd91ca751d96ed648fd1ed52ce342 (patch) | |
tree | e817b2dcc2b8d018181fd676feb1648786d23de3 /spec/arel/unit/predicates/predicates_spec.rb | |
parent | 7fc820501ce7b997da43c47ec189aaa0d40645e1 (diff) | |
download | rails-d2988420fc6dd91ca751d96ed648fd1ed52ce342.tar.gz rails-d2988420fc6dd91ca751d96ed648fd1ed52ce342.tar.bz2 rails-d2988420fc6dd91ca751d96ed648fd1ed52ce342.zip |
Added PostgreSQL to build
Diffstat (limited to 'spec/arel/unit/predicates/predicates_spec.rb')
-rw-r--r-- | spec/arel/unit/predicates/predicates_spec.rb | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/spec/arel/unit/predicates/predicates_spec.rb b/spec/arel/unit/predicates/predicates_spec.rb index ac842998af..8e7e0b1d9f 100644 --- a/spec/arel/unit/predicates/predicates_spec.rb +++ b/spec/arel/unit/predicates/predicates_spec.rb @@ -21,11 +21,17 @@ module Arel }) end - adapter_is_not :mysql do + adapter_is :sqlite3 do sql.should be_like(%Q{ ("users"."id" = 1 AND "users"."name" = 'name') }) end + + adapter_is :postgresql do + sql.should be_like(%Q{ + ("users"."id" = 1 AND "users"."name" = E'name') + }) + end end end end @@ -41,11 +47,17 @@ module Arel }) end - adapter_is_not :mysql do + adapter_is :sqlite3 do sql.should be_like(%Q{ ("users"."id" = 1 OR "users"."name" = 'name') }) end + + adapter_is :postgresql do + sql.should be_like(%Q{ + ("users"."id" = 1 OR "users"."name" = E'name') + }) + end end end end |