Sha256: bca129d6d14de049fdfd9b8c7eee8d42756a253925db357955f85894d8aa89bb
Contents?: true
Size: 459 Bytes
Versions: 24
Compression:
Stored size: 459 Bytes
Contents
def setup_mock require_dependencies 'mocha', :group => 'test', :require => false case options[:test].to_s when 'rspec' inject_into_file 'spec/spec_helper.rb', " conf.mock_with :mocha\n", :after => "RSpec.configure do |conf|\n" else inject_into_file 'test/test_config.rb', "require 'mocha/api'\n", :after => "require File.expand_path(File.dirname(__FILE__) + \"/../config/boot\")\n" insert_mocking_include "Mocha::API" end end
Version data entries
24 entries across 24 versions & 1 rubygems