Sha256: 9bfa15d094052f530e6c619c0c7fd9be0d5bf3aa73d13e7d3901824796e23a61
Contents?: true
Size: 1.33 KB
Versions: 2
Compression:
Stored size: 1.33 KB
Contents
require 'rubygems' require 'bundler/setup' Bundler.setup require 'minitest/autorun' require 'vcr' require 'mocha/setup' require 'wrong' module Vendorificator module Spec module Helpers module Wrong include ::Wrong::Assert include ::Wrong::Helpers def increment_assertion_count self.assertions += 1 end end end end end if ENV['COVERAGE'] require 'simplecov' SimpleCov.start do add_filter '/spec/' add_group 'Vendors', 'lib/vendorificator/vendor' use_merging end SimpleCov.command_name 'rake spec' end require 'vendorificator' VCR.configure do |config| config.cassette_library_dir = 'features/fixtures/vcr' config.default_cassette_options = { :record => :new_episodes } config.hook_into :webmock end class MiniTest::Spec include Vendorificator::Spec::Helpers::Wrong before do _git = stub _git.stubs(:capturing).returns(stub) Vendorificator::Environment.any_instance.stubs(:git).returns(_git) end def conf @conf ||= Vendorificator::Config.new end def basic_environment @basic_environment ||= Vendorificator::Environment.new( 'spec/vendorificator/fixtures/vendorfiles/empty_vendor.rb' ) end def includes_method?(obj, method) (obj.methods.include? method.to_sym) || (obj.methods.include? method.to_s) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
vendorificator-0.5.git.v0.4.0.17.g26d50d8 | spec/spec_helper.rb |
vendorificator-0.4.0 | spec/spec_helper.rb |