Sha256: 95f3eb2a3c3d32fcf23f0fe3ab4b1e28ec28a331ede79ab38cc121e70499cf23

Contents?: true

Size: 723 Bytes

Versions: 2

Compression:

Stored size: 723 Bytes

Contents

#require 'logger'
#require 'active_record'

Dir.chdir File.join(File.dirname(__FILE__), '..', '..')

#ActiveRecord::Base.logger = Logger.new("debug.log")

#databases = YAML::load(IO.read("spec/active_record/fixtures/database.yml"))
#db_info = databases[ENV["DB"] || "test"]
#ActiveRecord::Base.establish_connection(db_info)

require 'spec'
require 'lib/blueprints'

Spec::Runner.configure do |config|
  config.mock_with :mocha

  config.before do
    Blueprints::Namespace.root.instance_variable_set(:@context, Blueprints::Context.new)
    @mock = Mocha::Mockery.instance.unnamed_mock
  end

  config.after do
    Blueprints::Namespace.root.children.clear
    Blueprints::Namespace.root.executed_blueprints.clear
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
blueprints-0.8.2 spec/unit/spec_helper.rb
blueprints-0.8.1 spec/unit/spec_helper.rb