Sha256: 5e79543089121ab25d3379da730451aab5efab9de974e0594a4d9117c7f588d9
Contents?: true
Size: 677 Bytes
Versions: 3
Compression:
Stored size: 677 Bytes
Contents
# Set the environment variables for the test app ENV[ 'RAILS_ENV' ] = 'test' # Add the test app to the load path $: << ENV[ 'BESO_RAILS_PATH' ] # Require all dependencies Bundler.require # Boot the rails app require 'config/environment' # Helpers module ConstHelper def with_const( const, value ) Object.const_set const, value yield Object.send :remove_const, const end end # Configure RSpec RSpec.configure do |config| # Use color config.color_enabled = true # Change the formatter config.formatter = :documentation # Include helpers config.include ConstHelper # Reset Beso after each test config.after :each do Beso.reset! end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
beso-0.2.1 | spec/spec_helper.rb |
beso-0.2.0 | spec/spec_helper.rb |
beso-0.1.0 | spec/spec_helper.rb |