Sha256: 1ddfd6fb66566becb8e704a00dbbf16c599c9bdae33c6d77062ee15f5c0d7da1
Contents?: true
Size: 725 Bytes
Versions: 5
Compression:
Stored size: 725 Bytes
Contents
require 'cucumber' require 'active_record' Root = File.expand_path(File.dirname(__FILE__) + '/../..') require File.expand_path(Root + '/lib/blueprints') ActiveRecord::Base.logger = Logger.new("debug.log") databases = YAML::load_file(Root + "/spec/active_record/fixtures/database.yml") db_info = databases[ENV["DB"] || "test"] ActiveRecord::Base.establish_connection(db_info) # Comment out the next two lines if you're not using RSpec's matchers (should / should_not) in your steps. #require 'cucumber/rspec' require Root + '/spec/active_record/fixtures/fruit' require Root + '/spec/active_record/fixtures/tree' Blueprints.enable do |config| config.root = Root + '/spec/active_record' config.prebuild = :big_cherry end
Version data entries
5 entries across 5 versions & 1 rubygems