aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/application
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2015-04-18 19:53:40 -0400
committerSantiago Pastorino <santiago@wyeworks.com>2015-06-11 16:54:11 -0300
commit20939b3fcc3e34850e3c4b47327eff7ccaaa8eba (patch)
tree5b1b8dccb0218caa1e148b48c585e6d6e9fca9ea /railties/test/application
parente8100fc4e306818d5b9a5d2bfd75dcf3f44553b4 (diff)
downloadrails-20939b3fcc3e34850e3c4b47327eff7ccaaa8eba.tar.gz
rails-20939b3fcc3e34850e3c4b47327eff7ccaaa8eba.tar.bz2
rails-20939b3fcc3e34850e3c4b47327eff7ccaaa8eba.zip
config.generators.api_only = true set rails api option on generators
Diffstat (limited to 'railties/test/application')
-rw-r--r--railties/test/application/generators_test.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/railties/test/application/generators_test.rb b/railties/test/application/generators_test.rb
index 5db4638685..def57f360b 100644
--- a/railties/test/application/generators_test.rb
+++ b/railties/test/application/generators_test.rb
@@ -126,7 +126,7 @@ module ApplicationTests
end
end
- test "api only generators hide assets, helper, js and css namespaces" do
+ test "api only generators hide assets, helper, js and css namespaces and set api option" do
add_to_config <<-RUBY
config.generators.api_only = true
RUBY
@@ -139,6 +139,7 @@ module ApplicationTests
assert Rails::Generators.hidden_namespaces.include?("helper")
assert Rails::Generators.hidden_namespaces.include?("js")
assert Rails::Generators.hidden_namespaces.include?("css")
+ assert Rails::Generators.options[:rails][:api]
end
end
end