Sha256: fda4a406721a6f4ed617743bfe2428281274f770478f53a16607c53022d4bf7c
Contents?: true
Size: 923 Bytes
Versions: 5
Compression:
Stored size: 923 Bytes
Contents
$: << File.join(File.dirname(__FILE__), "/../lib" ) # Set the default environment to sqlite3's in_memory database ENV['RAILS_ENV'] ||= 'in_memory' # Load the Rails environment and testing framework require "#{File.dirname(__FILE__)}/app_root/config/environment" require 'spec/rails' # Load dependencies require 'assignable_values' require 'shoulda-matchers' # Load the gem itself require "#{File.dirname(__FILE__)}/../lib/consul" # Undo changes to RAILS_ENV silence_warnings {RAILS_ENV = ENV['RAILS_ENV']} # Requires supporting files with custom matchers and macros, etc in ./support/ and its subdirectories. Dir[File.expand_path(File.join(File.dirname(__FILE__),'support','**','*.rb'))].each {|f| require f} # Run the migrations ActiveRecord::Migrator.migrate("#{Rails.root}/db/migrate") Spec::Runner.configure do |config| config.use_transactional_fixtures = true config.use_instantiated_fixtures = false end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
consul-0.3.0 | spec/spec_helper.rb |
consul-0.2.3 | spec/spec_helper.rb |
consul-0.2.2 | spec/spec_helper.rb |
consul-0.2.1 | spec/spec_helper.rb |
consul-0.2.0 | spec/spec_helper.rb |