diff options
author | Vipul A M <vipulnsward@gmail.com> | 2014-05-31 23:22:51 +0530 |
---|---|---|
committer | Vipul A M <vipulnsward@gmail.com> | 2014-05-31 23:28:54 +0530 |
commit | 75de31a7f315512ade55b7d376fda8a7d5d393ff (patch) | |
tree | c792def0c1de0c2c6a9eecdced5cb3b2a876dc33 | |
parent | 4ffc147fa63ae6c554e151a8407d3ea0ad0a717b (diff) | |
download | rails-75de31a7f315512ade55b7d376fda8a7d5d393ff.tar.gz rails-75de31a7f315512ade55b7d376fda8a7d5d393ff.tar.bz2 rails-75de31a7f315512ade55b7d376fda8a7d5d393ff.zip |
- Fix ambiguous argument warning
- Fix typo: `test_opertaion_ordering` => `test_operation_ordering`
-rw-r--r-- | test/nodes/test_infix_operation.rb | 2 | ||||
-rw-r--r-- | test/visitors/test_to_sql.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test/nodes/test_infix_operation.rb b/test/nodes/test_infix_operation.rb index bec226e395..40616024e5 100644 --- a/test/nodes/test_infix_operation.rb +++ b/test/nodes/test_infix_operation.rb @@ -18,7 +18,7 @@ module Arel assert_equal 'zomg', aliaz.right end - def test_opertaion_ordering + def test_operation_ordering operation = InfixOperation.new :+, 1, 2 ordering = operation.desc assert_kind_of Descending, ordering diff --git a/test/visitors/test_to_sql.rb b/test/visitors/test_to_sql.rb index 65d36bc004..a88c888908 100644 --- a/test/visitors/test_to_sql.rb +++ b/test/visitors/test_to_sql.rb @@ -249,7 +249,7 @@ module Arel it "unsupported input should not raise ArgumentError" do error = assert_raises(RuntimeError) { compile(nil) } - assert_match /\Aunsupported/, error.message + assert_match(/\Aunsupported/, error.message) end it "should visit_Arel_SelectManager, which is a subquery" do |