Sha256: 9b2a6a0fcb97c80843e3341fc59781cbeddbd8524698040b0b6009608dca7a30

Contents?: true

Size: 745 Bytes

Versions: 3

Compression:

Stored size: 745 Bytes

Contents

ENV['RAILS_ENV'] ||= 'test'

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

Rails.backtrace_cleaner.remove_silencers!

# Load support files
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }

# Use webkit as the Capybara JS driver
Capybara.javascript_driver = :webkit

RSpec.configure do |config|
  config.mock_with :rspec
  config.infer_base_class_for_anonymous_controllers = false
  config.order = "random"

  # Make the standard Capybara driver play nice with the Webkit (JS) driver
  config.use_transactional_fixtures = false

  # Allow for short-hand Factory Girl syntax
  config.include FactoryGirl::Syntax::Methods
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
validation_sync-0.0.4 spec/spec_helper.rb
validation_sync-0.0.3 spec/spec_helper.rb
validation_sync-0.0.2 spec/spec_helper.rb