Sha256: 8a582c347a31215fdccceea672e5237583f6223e8613ee92fcb58dedf9d24bbf

Contents?: true

Size: 666 Bytes

Versions: 1

Compression:

Stored size: 666 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
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
blueprints-0.8.0 spec/unit/spec_helper.rb