1
0
Fork 0
mirror of https://github.com/thoughtbot/shoulda-matchers.git synced 2022-11-09 12:01:38 -05:00
thoughtbot--shoulda-matchers/spec/spec_helper.rb
Elliot Winkler 878e9582e1 Extract a common spec helper
In order to write tests for the `word_wrap` method we have, we need a
spec helper that we can require. We don't need anything fancy. The
doublespeak_spec_helper is doing most of what we want except for the
Doublespeak require.
2015-10-07 23:32:51 -06:00

23 lines
390 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
if config.files_to_run.one?
config.default_formatter = 'doc'
end
config.mock_with :rspec
end
$VERBOSE = true