mirror of
https://github.com/thoughtbot/shoulda-matchers.git
synced 2022-11-09 12:01:38 -05:00

Prior to this commit we only told RSpec to use the doc formatter if we were running one test file. When a test file is being run using Zeus, `unit_spec_helper` (and thus `spec_helper`) are loaded ahead of time. This means that from RSpec's perspective, no files are being run, and so the documentation formatter is not chosen, which means that the default progress reporter is used. This guard was added primarily to ensure that when tests are run on CI, the progress reporter is used instead of the documentation formatter. This happens anyway, though, because we pass that manually to RSpec within the Rakefile. So we don't need this guard.
21 lines
352 B
Ruby
21 lines
352 B
Ruby
PROJECT_ROOT = File.expand_path('../..', __FILE__)
|
|
$LOAD_PATH << File.join(PROJECT_ROOT, 'lib')
|
|
|
|
require 'pry'
|
|
require 'pry-byebug'
|
|
|
|
require 'rspec'
|
|
|
|
RSpec.configure do |config|
|
|
config.order = :random
|
|
|
|
config.expect_with :rspec do |c|
|
|
c.syntax = :expect
|
|
end
|
|
|
|
config.default_formatter = 'doc'
|
|
|
|
config.mock_with :rspec
|
|
end
|
|
|
|
$VERBOSE = true
|