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
518 B
Ruby
23 lines
518 B
Ruby
require_relative 'support/tests/current_bundle'
|
|
|
|
Tests::CurrentBundle.instance.assert_appraisal!
|
|
|
|
#---
|
|
|
|
require 'rspec/core'
|
|
|
|
require 'spec_helper'
|
|
|
|
Dir[ File.join(File.expand_path('../support/acceptance/**/*.rb', __FILE__)) ].sort.each do |file|
|
|
require file
|
|
end
|
|
|
|
RSpec.configure do |config|
|
|
if config.respond_to?(:infer_spec_type_from_file_location!)
|
|
config.infer_spec_type_from_file_location!
|
|
end
|
|
|
|
AcceptanceTests::Helpers.configure_example_group(config)
|
|
|
|
config.include AcceptanceTests::Matchers
|
|
end
|