Sha256: 674b29645ab9ba6f6389fb4bbd21b624ca56a480b4bd0e577580a1e7aea44b4d

Contents?: true

Size: 1.06 KB

Versions: 16

Compression:

Stored size: 1.06 KB

Contents

$: << File.join(File.dirname(__FILE__), "/../../lib" )

# Set the default environment to sqlite3's in_memory database
ENV['RAILS_ENV'] = 'in_memory'

FileUtils.rm(Dir.glob("db/*.db"), :force => true)

# Load the Rails environment and testing framework
require "#{File.dirname(__FILE__)}/../app_root/config/environment"
require 'spec/rails'

### Load dependencies
#require 'memoizer'
#require 'shoulda-matchers'
#require 'assignable_values'
#
## Load the gem itself
#require "#{File.dirname(__FILE__)}/../../lib/consul"

require 'rspec_candy/helpers'

# 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
print "\033[30m" # dark gray text
ActiveRecord::Migrator.migrate("#{Rails.root}/db/migrate")
print "\033[0m"

Spec::Runner.configure do |config|
  config.use_transactional_fixtures = true
  config.use_instantiated_fixtures  = false
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
consul-0.12.2 spec/rails-2.3/spec/spec_helper.rb
consul-0.12.1 spec/rails-2.3/spec/spec_helper.rb
consul-0.12.0 spec/rails-2.3/spec/spec_helper.rb
consul-0.11.2 spec/rails-2.3/spec/spec_helper.rb
consul-0.11.1 spec/rails-2.3/spec/spec_helper.rb
consul-0.11.0 spec/rails-2.3/spec/spec_helper.rb
consul-0.10.2 spec/rails-2.3/spec/spec_helper.rb
consul-0.10.1 spec/rails-2.3/spec/spec_helper.rb
consul-0.10.0 spec/rails-2.3/spec/spec_helper.rb
consul-0.9.1 spec/rails-2.3/spec/spec_helper.rb
consul-0.9.0 spec/rails-2.3/spec/spec_helper.rb
consul-0.8.0 spec/rails-2.3/spec/spec_helper.rb
consul-0.7.0 spec/rails-2.3/spec/spec_helper.rb
consul-0.6.1 spec/rails-2.3/spec/spec_helper.rb
consul-0.6.0 spec/rails-2.3/spec/spec_helper.rb
consul-0.5.0 spec/rails-2.3/spec/spec_helper.rb