spec/spec_helper.rb in boletosimples-0.0.6 vs spec/spec_helper.rb in boletosimples-0.0.7
- old
+ new
@@ -8,8 +8,26 @@
$LOAD_PATH.unshift(File.dirname(__FILE__))
require 'rspec'
require 'pry'
require 'boletosimples'
+RSpec.configure do |config|
+ config.disable_monkey_patching!
+ config.order = :random
+ Kernel.srand config.seed
+ config.filter_run focus: true
+ config.run_all_when_everything_filtered = true
+ config.expect_with :rspec do |expectations|
+ expectations.syntax = :expect
+ end
+ config.mock_with :rspec do |mocks|
+ mocks.syntax = :expect
+ mocks.verify_partial_doubles = true
+ end
+ if config.files_to_run.one?
+ config.default_formatter = 'doc'
+ end
+end
+
# Requires supporting files with custom matchers and macros, etc,
# in ./support/ and its subdirectories.
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }