From 8b3c988e81e1716a31215b820da7062ab786336e Mon Sep 17 00:00:00 2001 From: Ernie Miller Date: Fri, 27 Jan 2012 09:39:17 -0500 Subject: [PATCH] fix ordered hash expectation in specs, drop rbx-19 --- .travis.yml | 1 - spec/ransack/search_spec.rb | 5 +++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 8bf1608..33d70a1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,7 +3,6 @@ rvm: - 1.9.2 - ree - rbx-18mode - - rbx-19mode - ruby-head env: diff --git a/spec/ransack/search_spec.rb b/spec/ransack/search_spec.rb index 3eb0d8c..63e99cf 100644 --- a/spec/ransack/search_spec.rb +++ b/spec/ransack/search_spec.rb @@ -124,7 +124,8 @@ module Ransack ) search.result.should be_an ActiveRecord::Relation where = search.result.where_values.first - where.to_sql.should match /"children_people"."name" = 'Ernie' AND \("people"."name" = 'Ernie' OR "children_people_2"."name" = 'Ernie'\)/ + where.to_sql.should match /"children_people"."name" = 'Ernie'/ + where.to_sql.should match /\("people"."name" = 'Ernie' OR "children_people_2"."name" = 'Ernie'\)/ end it 'evaluates arrays of groupings' do @@ -220,4 +221,4 @@ module Ransack end end -end \ No newline at end of file +end