spec/spec_helper.rb in rgentpl-1.2.6 vs spec/spec_helper.rb in rgentpl-2.0.0

- old
+ new

@@ -1,29 +1,23 @@ -TEMPLATE_ENV = 'test' unless defined?(TEMPLATE_ENV) +require "rubygems" +require "pry" -require 'rubygems' -require 'pry' - -ENV['RUBY_ENV'] ||= 'test' - -unless ENV['DRB'] - require 'simplecov' - require 'simplecov-gem-adapter' - SimpleCov.start 'gem' +unless ENV["DRB"] + require "simplecov" + SimpleCov.start end -require 'rspec' -require 'capybara' +require "rspec" -require File.dirname(__FILE__) + '/../config/environment' +ENV["TEMPLATE_ENV"] = "test" +require File.dirname(__FILE__) + "/../config/environment" + # Load support files Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f } -# Include main application module -include Rgentpl - RSpec.configure do |config| config.mock_with :rspec - - config.order = 'random' + config.order = "random" + config.filter_run focus: true + config.run_all_when_everything_filtered = true end