Sha256: 11bc7c6dca50bf7bb8cc3cfad34f7eb972ad5e6d97232b02fd1f693dfdc18c3f

Contents?: true

Size: 794 Bytes

Versions: 6

Compression:

Stored size: 794 Bytes

Contents

# encoding: UTF-8

ENV["RAILS_ENV"] ||= "test"

PROJECT_ROOT = File.expand_path("../..", __FILE__)
$LOAD_PATH << File.join(PROJECT_ROOT, "lib")

require 'rails/all'
require 'rails/test_help'
Bundler.require

require 'diesel/testing'
require 'rspec/rails'

require 'factory_girl_rails'

require 'watchmaker'

if RUBY_VERSION > "1.9"
  require 'simplecov'
  SimpleCov.start
end

Dir[Rails.root.join("spec/support/**/*.rb")].each { |f| require f }

ActiveRecord::Base.establish_connection(
  :adapter => "sqlite3", 
  :database => ":memory:"
)

ActiveRecord::Base.silence do
  ActiveRecord::Migration.verbose = false

  load(File.dirname(__FILE__) + '/../db/schema.rb')
end

RSpec.configure do |config|
  config.use_transactional_fixtures = true
  config.backtrace_clean_patterns << %r{gems/}
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
watchmaker-0.2.2 spec/spec_helper.rb
watchmaker-0.2.1 spec/spec_helper.rb
watchmaker-0.2.0 spec/spec_helper.rb
watchmaker-0.1.2 spec/spec_helper.rb
watchmaker-0.1.1 spec/spec_helper.rb
watchmaker-0.1.0 spec/spec_helper.rb