vagrant-lxc-ng/spec/unit_helper.rb

18 lines
408 B
Ruby
Raw Normal View History

2013-02-28 03:06:29 +00:00
require 'spec_helper'
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\//
}
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