spec/arel/engines/sql/unit/primitives/literal_spec.rb in arel-0.2.1 vs spec/arel/engines/sql/unit/primitives/literal_spec.rb in arel-0.3.0

- old
+ new

@@ -12,11 +12,15 @@ adapter_is :mysql do sql.should be_like(%Q{SELECT COUNT(*) AS count_id FROM `users`}) end - adapter_is_not :mysql do + adapter_is :oracle do + sql.should be_like(%Q{SELECT COUNT(*) AS count_id FROM "USERS"}) + end + + adapter_is_not :mysql, :oracle do sql.should be_like(%Q{SELECT COUNT(*) AS count_id FROM "users"}) end end it "manufactures expressions on literal SQL fragment" do @@ -24,10 +28,14 @@ adapter_is :mysql do sql.should be_like(%Q{SELECT SUM(2 * credit_limit) AS sum_id FROM `users`}) end - adapter_is_not :mysql do + adapter_is :oracle do + sql.should be_like(%Q{SELECT SUM(2 * credit_limit) AS sum_id FROM "USERS"}) + end + + adapter_is_not :mysql, :oracle do sql.should be_like(%Q{SELECT SUM(2 * credit_limit) AS sum_id FROM "users"}) end end end end