Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- group :test do
- gem 'cucumber-rails'
- gem 'capybara'
- gem 'database_cleaner'
- gem 'factory_girl_rails'
- end
- group :development, :test do
- gem 'rspec-rails'
- end
- require 'cucumber/rails'
- require "#{Rails.root}/spec/factories"
- FactoryGirl.define do
- factory :user do
- first_name "John"
- last_name "Doe"
- admin false
- end
- end
- ENV["RAILS_ENV"] ||= 'test'
- require File.expand_path("../../config/environment", __FILE__)
- require 'rspec/rails'
- require 'rspec/autorun'
- require 'factory_girl_rails'
- # Requires supporting ruby files with custom matchers and macros, etc,
- # in spec/support/ and its subdirectories.
- Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| require f}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement