spec/spec_helper.rb in bamboozled-0.0.7 vs spec/spec_helper.rb in bamboozled-0.1.0

- old
+ new

@@ -1,16 +1,32 @@ -require_relative '../lib/bamboozled' +require "coveralls" +Coveralls.wear! -#dependencies -require 'minitest/autorun' -require 'webmock/minitest' +require "webmock/rspec" +require "rspec" -require 'turn' +RSpec.configure do |config| + config.expect_with :rspec do |expectations| + # Only allow the expectation syntax + expectations.syntax = :expect -Turn.config do |c| - # :outline - turn's original case/test outline mode [default] - c.format = :outline - # turn on invoke/execute tracing, enable full backtrace - c.trace = true - # use humanized test names (works only with :outline format) - c.natural = true + # Include custom matcher descriptions in output + expectations.include_chain_clauses_in_custom_matcher_descriptions = true + end + + # Disable monkey patching for describe + config.expose_dsl_globally = false + config.disable_monkey_patching! + + if config.files_to_run.one? + # Use the documentation formatter for detailed output + config.default_formatter = "doc" + end + + # Run specs in random order to surface order dependencies + config.order = :random + + # Seed global randomization in this process using the `--seed` CLI option + Kernel.srand config.seed end + +require "bamboozled"