spec/arel/engines/sql/unit/relations/from_spec.rb in arel-0.2.1 vs spec/arel/engines/sql/unit/relations/from_spec.rb in arel-0.3.0

- old
+ new

@@ -15,12 +15,19 @@ SELECT `users`.`id`, `users`.`name` FROM workers }) end - adapter_is_not :mysql do + adapter_is :oracle do sql.should be_like(%Q{ + SELECT "USERS"."ID", "USERS"."NAME" + FROM workers + }) + end + + adapter_is_not :mysql, :oracle do + sql.should be_like(%Q{ SELECT "users"."id", "users"."name" FROM workers }) end end @@ -35,10 +42,17 @@ SELECT `users`.`id`, `users`.`name` FROM users }) end - adapter_is_not :mysql do + adapter_is :oracle do + sql.should be_like(%Q{ + SELECT "USERS"."ID", "USERS"."NAME" + FROM users + }) + end + + adapter_is_not :mysql, :oracle do sql.should be_like(%Q{ SELECT "users"."id", "users"."name" FROM users }) end