spec/engines/sql/unit/relations/where_spec.rb in arel-0.4.0 vs spec/engines/sql/unit/relations/where_spec.rb in arel-1.0.0.rc1
- old
+ new
@@ -8,10 +8,10 @@
end
describe '#to_sql' do
describe 'when given a predicate' do
it "manufactures sql with where clause conditions" do
- sql = Where.new(@relation, @predicate).to_sql
+ sql = Where.new(@relation, [@predicate]).to_sql
adapter_is :mysql do
sql.should be_like(%Q{
SELECT `users`.`id`, `users`.`name`
FROM `users`