提交 4b7fee02 编写于 作者: K Kuldeep Aggarwal

added test cases to find notes in a file with .builder extension

上级 fa13d8e6
......@@ -28,6 +28,7 @@ def teardown
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 @@ def teardown
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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册