require "coveralls"
Coveralls.wear!

require "simplecov"
SimpleCov.start do
  add_filter "/spec\/fixtures/"
  add_filter "/spec\/dummy/"
end

ENV["RAILS_ENV"] ||= "test"
require "chanko"

require File.expand_path("../dummy/config/environment", __FILE__)
require "rspec/rails"

RSpec.configure do |config|
  config.use_transactional_fixtures = true
  config.infer_base_class_for_anonymous_controllers = false
  config.treat_symbols_as_metadata_keys_with_true_values = true
  config.run_all_when_everything_filtered = true
  config.filter_run :focus

  config.after do
    Chanko::Config.reset
    Chanko::Config.units_directory_path = File.expand_path("../fixtures/units", __FILE__)
  end

  # rspec-rails 3 will no longer automatically infer an example group's spec type
  # from the file location. You can explicitly opt-in to the feature using this
  # config option.
  # To explicitly tag specs without using automatic inference, set the `:type`
  # metadata manually:
  #
  #     describe ThingsController, :type => :controller do
  #       # Equivalent to being in spec/controllers
  #     end
  config.infer_spec_type_from_file_location!
end

Chanko::Config.units_directory_path = File.expand_path("../fixtures/units", __FILE__)

require "coveralls"
Coveralls.wear!

require "simplecov"
SimpleCov.start do
  add_filter "/spec\/fixtures/"
  add_filter "/spec\/dummy/"
end

ENV["RAILS_ENV"] ||= "test"
require "chanko"

require File.expand_path("../dummy/config/environment", __FILE__)
require "rspec/rails"

RSpec.configure do |config|
  config.use_transactional_fixtures = true
  config.infer_base_class_for_anonymous_controllers = false
  config.run_all_when_everything_filtered = true
  config.filter_run :focus

  config.after do
    Chanko::Config.reset
    Chanko::Config.units_directory_path = File.expand_path("../fixtures/units", __FILE__)
  end

  # rspec-rails 3 will no longer automatically infer an example group's spec type
  # from the file location. You can explicitly opt-in to the feature using this
  # config option.
  # To explicitly tag specs without using automatic inference, set the `:type`
  # metadata manually:
  #
  #     describe ThingsController, :type => :controller do
  #       # Equivalent to being in spec/controllers
  #     end
  config.infer_spec_type_from_file_location!
end

Chanko::Config.units_directory_path = File.expand_path("../fixtures/units", __FILE__)

Fix deprecation warning on treat_symbols_as_metadata_keys_with_true_values
Fix deprecation warning on treat_symbols_as_metadata_keys_with_true_values

It is now set to true as default and setting it to false has no effect.
