Class: Rspec::Generators::AuthenticationGenerator Private
Do not use. This class is for internal use only.
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
Base ,
Rails::Generators::NamedBase
|
|
Instance Chain:
self,
Base ,
::RSpec::Rails::FeatureCheck ,
Rails::Generators::NamedBase
|
|
Inherits: |
Rspec::Generators::Base
|
Defined in: | rspec-rails/lib/generators/rspec/authentication/authentication_generator.rb |
Class Method Summary
- .new(args, *options) ⇒ AuthenticationGenerator constructor Internal use only
Base
- Inherited
.configuration | Load configuration from |
.source_root |
Instance Method Summary
- #create_fixture_file Internal use only
- #create_user_spec Internal use only
Base
- Inherited
::RSpec::Rails::FeatureCheck
- Included
Instance Method Details
#create_fixture_file
[ GitHub ]# File 'rspec-rails/lib/generators/rspec/authentication/authentication_generator.rb', line 18
def create_fixture_file return if [:fixture_replacement] template 'users.yml', target_path('fixtures', 'users.yml') end
#create_user_spec
[ GitHub ]# File 'rspec-rails/lib/generators/rspec/authentication/authentication_generator.rb', line 12
def create_user_spec template 'user_spec.rb', target_path('models', 'user_spec.rb') end