Sha256: c5445edbf99c4cc8f3254f8790b3b921720c528cf27742db56328fb021a14adc

Contents?: true

Size: 600 Bytes

Versions: 1

Compression:

Stored size: 600 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
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
beso-0.0.1 spec/spec_helper.rb