Permalink
Browse files

Warnings removed for "assert_match /".

  • Loading branch information...
1 parent 555d815 commit 4646b2ecacaa06e5652618623f2e76cab67018b7 @arunagw arunagw committed May 30, 2012
Showing with 20 additions and 20 deletions.
  1. +20 −20 railties/test/application/rake/notes_test.rb
@@ -33,14 +33,14 @@ def teardown
output = `bundle exec rake notes`
lines = output.scan(/\[([0-9\s]+)\](\s)/)
- assert_match /note in erb/, output
- assert_match /note in haml/, output
- assert_match /note in slim/, output
- assert_match /note in ruby/, output
- assert_match /note in coffee/, output
- assert_match /note in js/, output
- assert_match /note in css/, output
- assert_match /note in scss/, output
+ assert_match(/note in erb/, output)
+ assert_match(/note in haml/, output)
+ assert_match(/note in slim/, output)
+ assert_match(/note in ruby/, output)
+ assert_match(/note in coffee/, output)
+ assert_match(/note in js/, output)
+ assert_match(/note in css/, output)
+ assert_match(/note in scss/, output)
assert_equal 8, lines.size
@@ -72,12 +72,12 @@ def teardown
output = `bundle exec rake notes`
lines = output.scan(/\[([0-9\s]+)\]/).flatten
- assert_match /note in app directory/, output
- assert_match /note in config directory/, output
- assert_match /note in lib directory/, output
- assert_match /note in script directory/, output
- assert_match /note in test directory/, output
- assert_no_match /note in some_other directory/, output
+ assert_match(/note in app directory/, output)
+ assert_match(/note in config directory/, output)
+ assert_match(/note in lib directory/, output)
+ assert_match(/note in script directory/, output)
+ assert_match(/note in test directory/, output)
+ assert_no_match(/note in some_other directory/, output)
assert_equal 5, lines.size
@@ -108,13 +108,13 @@ def teardown
output = `SOURCE_ANNOTATION_DIRECTORIES='some_other_dir' bundle exec rake notes`
lines = output.scan(/\[([0-9\s]+)\]/).flatten
- assert_match /note in app directory/, output
- assert_match /note in config directory/, output
- assert_match /note in lib directory/, output
- assert_match /note in script directory/, output
- assert_match /note in test directory/, output
+ assert_match(/note in app directory/, output)
+ assert_match(/note in config directory/, output)
+ assert_match(/note in lib directory/, output)
+ assert_match(/note in script directory/, output)
+ assert_match(/note in test directory/, output)
- assert_match /note in some_other directory/, output
+ assert_match(/note in some_other directory/, output)
assert_equal 6, lines.size

0 comments on commit 4646b2e

Please sign in to comment.