Sha256: ec90f54a25145baf7723c1f6c2a5bb565da69b9a42a98f536eec6d6e029f092d

Contents?: true

Size: 743 Bytes

Versions: 4

Compression:

Stored size: 743 Bytes

Contents

ENV['RAILS_ENV'] ||= 'test'
ENV['DATABASE_URL'] ||= 'postgres://localhost/yawl-rails-test'

require File.expand_path("../test_app/config/environment.rb",  __FILE__)
require 'rspec/rails'
require 'rspec/autorun'

require 'capybara/rails'
require 'capybara/rspec'

Yawl::Config.pagination_per_page = 2

Rails.backtrace_cleaner.remove_silencers!

# Load support files
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
RSpec.configure do |config|
  config.mock_with :rspec
  config.use_transactional_fixtures = true
  config.infer_base_class_for_anonymous_controllers = false
  config.order = "random"

  config.around(:each) do |example|
    Yawl::DB.transaction(:rollback => :always) do
      example.run
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
yawl_rails-0.3.0 spec/spec_helper.rb
yawl_rails-0.2.2 spec/spec_helper.rb
yawl_rails-0.2.1 spec/spec_helper.rb
yawl_rails-0.2.0 spec/spec_helper.rb