Sha256: 9964ff49e2615857f3b43116e2729ed27596d1fb536abae5398d062c9461c6af
Contents?: true
Size: 789 Bytes
Versions: 2
Compression:
Stored size: 789 Bytes
Contents
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', '..', 'lib')) $LOAD_PATH.unshift(File.dirname(__FILE__)) require 'rubygems' require 'bundler' require 'rspec' require 'mockumentary' Bundler.require(:test) # do the activerecord and schema load dance. ActiveRecord::Base.establish_connection( :adapter => 'sqlite3', :database => SQLite3::Database.new("spec/mockery/test.db") ) load('fixtures/db/schema.rb') unless defined?(Rails) class Rails; end end FIXTURE_ROOT = File.dirname(__FILE__) + "/../fixtures" # Requires supporting files with custom matchers and macros, etc, Dir["#{File.dirname(__FILE__)}/../support/**/*.rb"].each {|f| require f} # Require fake AR files Dir["#{FIXTURE_ROOT}/app/models/**/*.rb"].each {|f| require f} RSpec.configure do |config| end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mockumentary-0.2.1 | spec/mockery/spec_helper.rb |
mockumentary-0.2.0 | spec/mockery/spec_helper.rb |