2013-02-28 03:06:29 +00:00
|
|
|
require 'spec_helper'
|
|
|
|
|
2013-04-21 21:13:34 +00:00
|
|
|
Dir[File.dirname(__FILE__) + "/unit/support/**/*.rb"].each { |f| require f }
|
|
|
|
|
2013-04-20 20:38:01 +00:00
|
|
|
if defined? SimpleCov
|
|
|
|
SimpleCov.command_name 'unit'
|
|
|
|
end
|
|
|
|
|
2013-02-28 03:06:29 +00:00
|
|
|
RSpec.configure do |config|
|
2013-03-02 00:20:11 +00:00
|
|
|
config.include UnitExampleGroup, :type => :unit, :example_group => {
|
|
|
|
:file_path => /\bspec\/unit\//
|
|
|
|
}
|
2014-03-14 14:37:50 +00:00
|
|
|
|
|
|
|
config.mock_with :rspec do |c|
|
|
|
|
c.yield_receiver_to_any_instance_implementation_blocks = true
|
|
|
|
end
|
2013-02-28 03:06:29 +00:00
|
|
|
end
|