mirror of
https://github.com/Fishwaldo/role_model.git
synced 2025-03-16 03:51:59 +00:00
14 lines
485 B
Ruby
14 lines
485 B
Ruby
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
|
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
|
require 'rspec'
|
|
require File.dirname(__FILE__) + '/custom_matchers'
|
|
require 'role_model'
|
|
|
|
RSpec.configure do |config|
|
|
config.include(CustomMatchers)
|
|
config.mock_with :rspec
|
|
end
|
|
|
|
# Requires supporting ruby files with custom matchers and macros, etc,
|
|
# in spec/support/ and its subdirectories.
|
|
Dir[File.join(File.dirname(__FILE__), 'support/**/*.rb')].each {|f| require f}
|