class Rspec::Generators::AuthenticationGenerator
@private
Public Class Methods
Source
# File lib/generators/rspec/authentication/authentication_generator.rb, line 7 def initialize(args, *options) args.replace(['User']) super end
Calls superclass method
Public Instance Methods
Source
# File lib/generators/rspec/authentication/authentication_generator.rb, line 18 def create_fixture_file return if options[:fixture_replacement] template 'users.yml', target_path('fixtures', 'users.yml') end
Source
# File lib/generators/rspec/authentication/authentication_generator.rb, line 12 def create_user_spec template 'user_spec.rb', target_path('models', 'user_spec.rb') end