mirror of
https://github.com/thoughtbot/shoulda-matchers.git
synced 2022-11-09 12:01:38 -05:00
878e9582e1
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.
23 lines
390 B
Ruby
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
|