Sha256: 4aa6f8142de71dfa6cca88154c7d5844504a616e495f20d27c014b1377aefc73
Contents?: true
Size: 870 Bytes
Versions: 5
Compression:
Stored size: 870 Bytes
Contents
require_relative 'spec_helper_base' require 'rspec/core' require 'rspec/rails/extensions' require 'rspec/rails/adapters' require 'rspec/rails/matchers' require 'rspec/rails/mocks' require 'database_cleaner' require 'factory_girl_rails' require 'paperclip/matchers' require 'ffaker' require 'shoulda-matchers' require 'gaku/testing/factories' Dir["#{File.dirname(__FILE__)}/support/models/**/*.rb"].each { |f| require f } # ActiveRecord::Migration.check_pending! if defined?(ActiveRecord::Migration) RSpec.configure do |config| 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 config.include FactoryGirl::Syntax::Methods config.include Paperclip::Shoulda::Matchers end
Version data entries
5 entries across 5 versions & 1 rubygems