diff --git a/rails_generators/nifty_authentication/nifty_authentication_generator.rb b/rails_generators/nifty_authentication/nifty_authentication_generator.rb index b68ec80..d5c348e 100644 --- a/rails_generators/nifty_authentication/nifty_authentication_generator.rb +++ b/rails_generators/nifty_authentication/nifty_authentication_generator.rb @@ -37,7 +37,7 @@ def manifest m.route_name :logout, 'logout', :controller => sessions_underscore_name, :action => 'destroy' m.route_name :signup, 'signup', :controller => user_plural_name, :action => 'new' - m.insert_into 'app/controllers/application.rb', 'include Authentication' + m.insert_into 'app/controllers/application_controller.rb', 'include Authentication' if test_framework == :rspec m.directory "spec" diff --git a/test/test_nifty_authentication_generator.rb b/test/test_nifty_authentication_generator.rb index d4c25bb..6f497fc 100644 --- a/test/test_nifty_authentication_generator.rb +++ b/test/test_nifty_authentication_generator.rb @@ -64,7 +64,7 @@ class TestNiftyAuthenticationGenerator < Test::Unit::TestCase end should "include Authentication" do - assert_generated_file "app/controllers/application.rb" do |body| + assert_generated_file "app/controllers/application_controller.rb" do |body| assert_match "include Authentication", body end end