Sha256: 2a5790c4811ade7d7ee323873695d319ca18fa43d3035c42cb90aa7169f06c20
Contents?: true
Size: 964 Bytes
Versions: 4
Compression:
Stored size: 964 Bytes
Contents
ENV["RAILS_ENV"] ||= 'test' require File.expand_path("../dummy/config/environment.rb", __FILE__) require 'rspec/rails' require 'capybara' require 'database_cleaner' require 'factory_girl' require 'shoulda-matchers' require 'manageable/spec/models/acts_as_article' FactoryGirl.definition_file_paths = [File.join(Manageable::Engine.root, 'spec', 'factories')] FactoryGirl.find_definitions ENGINE_RAILS_ROOT=File.join(File.dirname(__FILE__), '../') Dir[File.join(ENGINE_RAILS_ROOT, "spec/support/**/*.rb")].each {|f| require f } RSpec.configure do |config| config.mock_with :rspec config.use_transactional_fixtures = false config.include Capybara::DSL, :example_group => { :file_path => /\bspec\/integration\// } 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
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
manageable-0.1.4 | spec/spec_helper.rb |
manageable-0.1.3 | spec/spec_helper.rb |
manageable-0.1.2 | spec/spec_helper.rb |
manageable-0.1.1 | spec/spec_helper.rb |