Skip to content

Commit

Permalink
Change test_registering_new_handlers and test_count_on_invalid_column…
Browse files Browse the repository at this point in the history
…s_raises

tesetcases assertion to case insensitive because Oracle database adapter
handles table name in uppercase.
  • Loading branch information
yahonda committed Aug 1, 2013
1 parent 4b87854 commit d613034
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion activerecord/test/cases/calculations_test.rb
Expand Up @@ -172,7 +172,7 @@ def test_count_on_invalid_columns_raises
Account.select("credit_limit, firm_name").count 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 assert_match "credit_limit, firm_name", e.message
end end


Expand Down
2 changes: 1 addition & 1 deletion activerecord/test/cases/relation/predicate_builder_test.rb
Expand Up @@ -8,7 +8,7 @@ def test_registering_new_handlers
Arel::Nodes::InfixOperation.new('~', column, value.source) Arel::Nodes::InfixOperation.new('~', column, value.source)
end) 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 end
end end

0 comments on commit d613034

Please sign in to comment.