Permalink
Browse files

Change test_registering_new_handlers and test_count_on_invalid_column…

…s_raises

tesetcases assertion to case insensitive because Oracle database adapter
handles table name in uppercase.
  • Loading branch information...
1 parent 4b87854 commit d613034a1184f9de6167288d20f1e2ccf364997a @yahonda yahonda 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 d613034

Please sign in to comment.