Sha256: 3f0468f61a08bc782d551932e9cdb5c137d2dec5b9909ba60e28eb155ec8f855
Contents?: true
Size: 793 Bytes
Versions: 2
Compression:
Stored size: 793 Bytes
Contents
require 'bundler' Bundler.setup(:default, :development) require 'simplecov' unless ENV['TRAVIS'] Bundler.require require 'rubycas-client' SPEC_TMP_DIR="spec/tmp" Dir["./spec/support/**/*.rb"].each do |f| require f.gsub('.rb','') unless f.end_with? '_spec.rb' end require 'database_cleaner' RSpec.configure do |config| config.mock_with :rspec config.mock_framework = :rspec config.include ActionControllerHelpers config.before(:suite) do ActiveRecordHelpers.setup_active_record DatabaseCleaner.strategy = :transaction DatabaseCleaner.clean_with(:truncation) end config.after(:suite) do ActiveRecordHelpers.teardown_active_record end config.before(:each) do DatabaseCleaner.start end config.after(:each) do DatabaseCleaner.clean end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rubycas-client-2.3.9 | spec/spec_helper.rb |
rubycas-client-2.3.9.rc1 | spec/spec_helper.rb |