Sha256: f1955b07837816441253f882397c3af879ff3e4684228e164d9a57b50e57924e
Contents?: true
Size: 815 Bytes
Versions: 1
Compression:
Stored size: 815 Bytes
Contents
$:.unshift File.dirname(__FILE__) + '/../lib' require 'fabric' require 'fabric-test' module Fabric # @@options[:narrate] = true end begin require 'database_cleaner' rescue LoadError abort 'Database Cleaner is required to run specs - gem install database_cleaner' end TEST_SERVER = Fabric::Test.settings['server'] TEST_RUNNER = Fabric::Test.settings['runner'] TEST_USER = Fabric::Test.settings['user'] TEST_DOOMED_USER = Fabric::Test.settings['doomed_user'] TEST_GROUP = Fabric::Test.settings['group'] TEST_SECONDARY_GROUP = Fabric::Test.settings['secondary_group'] Spec::Runner.configure do |config| config.before(:suite) do DatabaseCleaner.strategy = :transaction end config.before(:each) do DatabaseCleaner.start end config.after(:each) do DatabaseCleaner.clean end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fabric-0.4.3 | spec/spec_helper.rb |