class Rspec::Generators::AuthenticationGenerator
@private
Public Class Methods
new(args, *options)
click to toggle source
Calls superclass method
# File lib/generators/rspec/authentication/authentication_generator.rb, line 7 def initialize(args, *options) args.replace(['User']) super end
Public Instance Methods
create_fixture_file()
click to toggle 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
create_user_spec()
click to toggle 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