Sha256: a28d39ee6120aae3c5e5e82ce5cda1b4e628e90631a467ade32dcfafd99e4066
Contents?: true
Size: 1.13 KB
Versions: 3
Compression:
Stored size: 1.13 KB
Contents
module Initial class RspecGenerator < 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/configs/capybara.rb', 'spec/support/configs/capybara.rb' template 'rspec/configs/database_cleaner.rb', 'spec/support/configs/database_cleaner.rb' template 'rspec/configs/factory_girl.rb', 'spec/support/configs/factory_girl.rb' template 'rspec/configs/devise.rb', 'spec/support/configs/devise.rb' template 'rspec/configs/vcr.rb', 'spec/support/configs/vcr.rb' template 'rspec/shared_examples/sample_shared.rb', 'spec/support/shared_examples/sample_shared.rb' run 'bundle exec spring binstub rspec' end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
teleporter-0.0.20 | lib/generators/initial/rspec.rb |
teleporter-0.0.19 | lib/generators/initial/rspec.rb |
teleporter-0.0.18 | lib/generators/initial/rspec.rb |