Sha256: 12d1b78c6ed62dc0a20d4e7362305c2a22457c576b4f9847a69fa360ceba6141
Contents?: true
Size: 1.66 KB
Versions: 1
Compression:
Stored size: 1.66 KB
Contents
# Notice there is a .rspec file in the root folder. It defines rspec arguments # Ruby 1.9 uses simplecov. The ENV['COVERAGE'] is set when rake coverage is run in ruby 1.9 if ENV['COVERAGE'] require 'simplecov' SimpleCov.start do # Remove the spec folder from coverage. By default all code files are included. For more config options see # https://github.com/colszowka/simplecov add_filter File.expand_path('../../spec/', __FILE__) coverage_dir(ENV['COVERAGE'] == 'integration' ? 'coverage/integration' :'coverage/unit') end end # Modify load path so you can require 'mckinsey_external_ad' directly. $LOAD_PATH.unshift(File.expand_path('../../lib', __FILE__)) require 'rubygems' # Loads bundler setup tasks. Now if I run spec without installing gems then it would say gem not installed and # do bundle install instead of ugly load error on require. require 'bundler/setup' # This will require me all the gems automatically for the groups. Bundler.require(:default, :test) require 'aggrobot' # Requires supporting ruby files with custom matchers and macros, etc, # in spec/support/ and its subdirectories. Dir[File.join(File.dirname(__FILE__), 'support/**/*.rb')].each { |f| require f } # Set Rails environment as test ENV['RAILS_ENV'] = 'test' RSpec.configure do |config| config.treat_symbols_as_metadata_keys_with_true_values = true config.run_all_when_everything_filtered = true config.filter_run :focus # Run specs in random order to surface order dependencies. If you find an # order dependency and want to debug it, you can fix the order by providing # the seed, which is printed after each run. # --seed 1234 config.order = 'random' end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
aggrobot-0.0.2 | spec/spec_helper.rb |