Sha256: a76057234cb1faac01b7dce106ad8a9142fb907362aac7ac7a8737440c12ec01
Contents?: true
Size: 1.06 KB
Versions: 1
Compression:
Stored size: 1.06 KB
Contents
module Initial class RspecBaseGenerator < Rails::Generators::Base source_root File.expand_path("../templates", __FILE__) def add gem_group :development, :test do gem "rspec-rails" end gem_group :test do gem 'factory_girl_rails' gem 'capybara' gem 'database_cleaner' gem 'shoulda-matchers' gem 'poltergeist' gem 'phantomjs', require: 'phantomjs/poltergeist' gem 'vcr' gem 'webmock' end run "bundle install" generate 'rspec:install' template 'rspec_base/capybara.rb', 'spec/support/capybara.rb' template 'rspec_base/database_cleaner.rb', 'spec/support/database_cleaner.rb' template 'rspec_base/factory_girl.rb', 'spec/support/factory_girl.rb' template 'rspec_base/spec_helpers.rb', 'spec/support/spec_helpers.rb' template 'rspec_base/devise.rb', 'spec/support/devise.rb' template 'rspec_base/vcr.rb', 'spec/support/vcr.rb' run 'bundle exec spring binstub rspec' end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
teleporter-0.0.13 | lib/generators/initial/rspec_base.rb |