Sha256: 94f9f05850c1f221cd9767f00955d399e73ca1bd02765090e05b2781ef7998bf

Contents?: true

Size: 884 Bytes

Versions: 1

Compression:

Stored size: 884 Bytes

Contents

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

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

Rails.backtrace_cleaner.remove_silencers!

ENGINE_RAILS_ROOT = File.join(File.dirname(__FILE__), '../')

# this will cause factories to load twice!!
#Dir[File.join(ENGINE_RAILS_ROOT, "spec/factories/**/*.rb")].each {|f| require f}

# 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.infer_spec_type_from_file_location!

    config.include FactoryGirl::Syntax::Methods
    RSpec::Expectations.configuration.warn_about_potential_false_positives = false
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
taxonomite-0.2.3 spec/spec_helper.rb