lib/generators/initial/rspec.rb in teleporter-0.0.21 vs lib/generators/initial/rspec.rb in teleporter-0.0.22
- old
+ new
@@ -3,10 +3,12 @@
source_root File.expand_path("../templates", __FILE__)
def add
gem_group :development, :test do
gem "rspec-rails"
+ gem 'spring'
+ gem 'spring-commands-rspec'
end
gem_group :test do
gem 'factory_girl_rails'
gem 'capybara'
@@ -18,10 +20,11 @@
gem 'webmock'
end
Bundler.with_clean_env do
run "bundle install"
+ run 'bundle exec spring binstub rspec'
end
generate 'rspec:install'
template 'rspec/configs/capybara.rb', 'spec/support/configs/capybara.rb'
@@ -29,12 +32,9 @@
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