Sha256: 7c7914d3314296bcc1686d5d28b666e2f3451aeced0b720bcc152fe6b9a86f8d
Contents?: true
Size: 621 Bytes
Versions: 3
Compression:
Stored size: 621 Bytes
Contents
require 'rubygems' require 'bundler/setup' require 'ranked-model' Dir[File.join(File.dirname(__FILE__), 'support/**/*.rb')].each {|f| require f} # After the DB connection is setup require 'database_cleaner' RSpec.configure do |config| config.mock_with :mocha config.before(:suite) do DatabaseCleaner.strategy = :transaction DatabaseCleaner.clean_with(:truncation) end config.before(:each) do DatabaseCleaner.start end config.after(:each) do DatabaseCleaner.clean end end RSpec::Matchers.define :define_constant do |expected| match { |actual| actual.const_defined?(expected) } end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
ranked-model-0.4.1 | spec/spec_helper.rb |
ranked-model-rails2-0.4.0 | spec/spec_helper.rb |
ranked-model-0.4.0 | spec/spec_helper.rb |