diff options
author | Oscar Del Ben <info@oscardelben.com> | 2012-04-28 11:45:15 +0200 |
---|---|---|
committer | Oscar Del Ben <info@oscardelben.com> | 2012-04-28 11:45:15 +0200 |
commit | 4e69a1579ea74fe2823f6fb2f055db97480492e5 (patch) | |
tree | d8a5834a0ed5a372969f26db753a30785777a5c2 /railties/test/generators | |
parent | 943410197cca4235212ca0fc409820378a40890c (diff) | |
parent | 0297e8e4ddc034bcb8ed477efff91d8fe104cb39 (diff) | |
download | rails-4e69a1579ea74fe2823f6fb2f055db97480492e5.tar.gz rails-4e69a1579ea74fe2823f6fb2f055db97480492e5.tar.bz2 rails-4e69a1579ea74fe2823f6fb2f055db97480492e5.zip |
Merge branch 'master' of github.com:lifo/docrails
Diffstat (limited to 'railties/test/generators')
-rw-r--r-- | railties/test/generators/namespaced_generators_test.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/railties/test/generators/namespaced_generators_test.rb b/railties/test/generators/namespaced_generators_test.rb index 76c34d4c50..6f00fc5d26 100644 --- a/railties/test/generators/namespaced_generators_test.rb +++ b/railties/test/generators/namespaced_generators_test.rb @@ -61,6 +61,15 @@ class NamespacedControllerGeneratorTest < NamespacedGeneratorTestCase run_generator ["account"] assert_file "app/views/test_app/account" end + + def test_namespaced_controller_dont_indent_blank_lines + run_generator + assert_file "app/controllers/test_app/account_controller.rb" do |content| + content.split("\n").each do |line| + assert_no_match line, /^\s+$/, "Don't indent blank lines" + end + end + end end class NamespacedModelGeneratorTest < NamespacedGeneratorTestCase |