spec/spec_helper.rb in as_csv-1.0.2 vs spec/spec_helper.rb in as_csv-2.0.0
- old
+ new
@@ -1,29 +1,10 @@
-# Configure Rails Environment
-ENV["RAILS_ENV"] = "test"
+require 'simplecov'
+SimpleCov.start
-require File.expand_path("../dummy/config/environment.rb", __FILE__)
-require 'rspec/rails'
-
-Rails.backtrace_cleaner.remove_silencers!
-
# Requires supporting ruby files with custom matchers and macros, etc,
# in spec/support/ and its subdirectories.
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
RSpec.configure do |config|
- # If you're not using ActiveRecord, or you'd prefer not to run each of your
- # examples within a transaction, remove the following line or assign false
- # instead of true.
- config.use_transactional_fixtures = true
-
- # If true, the base class of anonymous controllers will be inferred
- # automatically. This will be the default behavior in future versions of
- # rspec-rails.
- config.infer_base_class_for_anonymous_controllers = false
-
- config.treat_symbols_as_metadata_keys_with_true_values = true
-
config.order = "random"
-
- config.extend WidgetsControllerMixin, :widgets_controllers
end