diff options
Diffstat (limited to 'railties/test/application/rake')
-rw-r--r-- | railties/test/application/rake/notes_test.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/railties/test/application/rake/notes_test.rb b/railties/test/application/rake/notes_test.rb index d535f51986..10e0d2568c 100644 --- a/railties/test/application/rake/notes_test.rb +++ b/railties/test/application/rake/notes_test.rb @@ -33,7 +33,7 @@ module ApplicationTests Dir.chdir(app_path) do output = `bundle exec rake notes` - lines = output.scan(/\[([0-9\s]+)\](\s)/) + lines = output.scan(/\[([0-9\s]+)\]\s/).flatten assert_match(/note in erb/, output) assert_match(/note in js/, output) @@ -47,8 +47,7 @@ module ApplicationTests assert_equal 9, lines.size lines.each do |line| - assert_equal 4, line[0].size - assert_equal ' ', line[1] + assert_equal 4, line.size end end end |