Permalink
Browse files

Merge pull request #11709 from yahonda/case_sensitive

test_registering_new_handlers and test_count_on_invalid_columns_raises can be case insensitive
  • Loading branch information...
2 parents b3c0858 + d613034 commit b60ec0d81d24a9269272fe3102cff1fbe335be16 @rafaelfranca rafaelfranca committed Aug 1, 2013
@@ -172,7 +172,7 @@ def test_count_on_invalid_columns_raises
Account.select("credit_limit, firm_name").count
}
- assert_match "accounts", e.message
+ assert_match %r{accounts}i, e.message
assert_match "credit_limit, firm_name", e.message
end
@@ -8,7 +8,7 @@ def test_registering_new_handlers
Arel::Nodes::InfixOperation.new('~', column, value.source)
end)
- assert_match %r{["`]topics["`].["`]title["`] ~ 'rails'}, Topic.where(title: /rails/).to_sql
+ assert_match %r{["`]topics["`].["`]title["`] ~ 'rails'}i, Topic.where(title: /rails/).to_sql
end
end
end

0 comments on commit b60ec0d

Please sign in to comment.