aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/application/rake
diff options
context:
space:
mode:
authorAnton Lindqvist <anton@qvister.se>2012-03-22 12:25:10 +0100
committerAnton Lindqvist <anton@qvister.se>2012-03-22 12:25:28 +0100
commitc5f4b202757473b8262aa2e6e6bcfca1da3d73d3 (patch)
tree009432044bfcd62c3df6ca57b31545225e063028 /railties/test/application/rake
parent64249223ebb2b51814d8764c498b14a12d072b83 (diff)
downloadrails-c5f4b202757473b8262aa2e6e6bcfca1da3d73d3.tar.gz
rails-c5f4b202757473b8262aa2e6e6bcfca1da3d73d3.tar.bz2
rails-c5f4b202757473b8262aa2e6e6bcfca1da3d73d3.zip
Fixed missing space bug introduces in rails/rails@9299bfdcd387253d83b645c205b8df477f2d0940.
Diffstat (limited to 'railties/test/application/rake')
-rw-r--r--railties/test/application/rake/notes_test.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/railties/test/application/rake/notes_test.rb b/railties/test/application/rake/notes_test.rb
index b66433f64d..04abf9e3a1 100644
--- a/railties/test/application/rake/notes_test.rb
+++ b/railties/test/application/rake/notes_test.rb
@@ -28,7 +28,7 @@ module ApplicationTests
Dir.chdir(app_path) do
output = `bundle exec rake notes`
- lines = output.scan(/\[([0-9\s]+)\]/).flatten
+ lines = output.scan(/\[([0-9\s]+)\](\s)/)
assert_match /note in erb/, output
assert_match /note in haml/, output
@@ -38,8 +38,9 @@ module ApplicationTests
assert_equal 5, lines.size
- lines.each do |line_number|
- assert_equal 4, line_number.size
+ lines.each do |line|
+ assert_equal 4, line[0].size
+ assert_equal ' ', line[1]
end
end