aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2013-11-18 06:01:35 -0800
committerYves Senn <yves.senn@gmail.com>2013-11-18 06:01:35 -0800
commit2e9e670c0fdf1540c8bf8c49a8c11a41aef74c75 (patch)
tree32b345ec40dd680b3aa48ef1719bb921f16e87ba
parent97eae3b72b7e5eea88cb20266df731374c52f30d (diff)
parent4b7fee029f6cc6e058531dd21a65ec9d44a0b047 (diff)
downloadrails-2e9e670c0fdf1540c8bf8c49a8c11a41aef74c75.tar.gz
rails-2e9e670c0fdf1540c8bf8c49a8c11a41aef74c75.tar.bz2
rails-2e9e670c0fdf1540c8bf8c49a8c11a41aef74c75.zip
Merge pull request #12924 from kuldeepaggarwal/f-specs
added test cases to find notes in a file with .builder extension
-rw-r--r--railties/test/application/rake/notes_test.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/railties/test/application/rake/notes_test.rb b/railties/test/application/rake/notes_test.rb
index 01d751e822..05f6338b68 100644
--- a/railties/test/application/rake/notes_test.rb
+++ b/railties/test/application/rake/notes_test.rb
@@ -28,6 +28,7 @@ module ApplicationTests
app_file "app/assets/stylesheets/application.css.less", "// TODO: note in less"
app_file "app/controllers/application_controller.rb", 1000.times.map { "" }.join("\n") << "# TODO: note in ruby"
app_file "lib/tasks/task.rake", "# TODO: note in rake"
+ app_file 'app/views/home/index.html.builder', '# TODO: note in builder'
boot_rails
require 'rake'
@@ -51,8 +52,9 @@ module ApplicationTests
assert_match(/note in sass/, output)
assert_match(/note in less/, output)
assert_match(/note in rake/, output)
+ assert_match(/note in builder/, output)
- assert_equal 11, lines.size
+ assert_equal 12, lines.size
lines.each do |line|
assert_equal 4, line[0].size