Sha256: 1469b99c60e05f09cc1f58779ec0c9f35b57d118005b32af9255d3a5a15dd7e5
Contents?: true
Size: 1.02 KB
Versions: 3
Compression:
Stored size: 1.02 KB
Contents
require "rails" require 'rails/generators' require 'bundler' 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 #Bundler.with_clean_env do run "bundle install" #end #Rails::Generators.invoke 'rspec:install' generate 'rspec:install' template 'capybara.rb', 'spec/support/capybara.rb' template 'database_cleaner.rb', 'spec/support/database_cleaner.rb' template 'factory_girl.rb', 'spec/support/factory_girl.rb' template 'spec_helpers.rb', 'spec/support/spec_helpers.rb' template 'devise.rb', 'spec/support/devise.rb' end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
teleporter-0.0.6 | lib/generators/initial/rspec_base.rb |
teleporter-0.0.5 | lib/generators/initial/rspec_base.rb |
teleporter-0.0.4 | lib/generators/initial/rspec_base.rb |