Sha256: 2b51f7934013df6eefa1a7269eca66fbf1badf4c91b585fc2e5e2e3d92a0a6cb
Contents?: true
Size: 1.07 KB
Versions: 5
Compression:
Stored size: 1.07 KB
Contents
TEMPLATE_ENV = 'test' unless defined?(TEMPLATE_ENV) require 'rubygems' require 'spork' require 'pry' Spork.prefork do # Loading more in this block will cause your tests to run faster. However, # if you change any configuration or code from libraries loaded here, you'll # need to restart spork for it take effect. ENV['RUBY_ENV'] ||= 'test' unless ENV['DRB'] require 'simplecov' require 'simplecov-gem-adapter' SimpleCov.start 'gem' end require 'rspec' require 'capybara' require File.dirname(__FILE__) + '/../config/environment.rb' # Load support files Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f } # Include main application module include <%= app_name.camelize %> RSpec.configure do |config| config.include <%= app_name.camelize %>::Helper::Assertions config.mock_with :rspec config.order = 'random' end end Spork.each_run do # This code will be run each time you run your specs. unless ENV['DRB'] require 'simplecov' require 'simplecov-gem-adapter' SimpleCov.start 'gem' end end
Version data entries
5 entries across 5 versions & 1 rubygems