Sha256: 07c47869c0dce1fabea221fc8c5816a4b53cafddebc5d6834e5ab68db675fe8c
Contents?: true
Size: 434 Bytes
Versions: 21
Compression:
Stored size: 434 Bytes
Contents
def setup_mock require_dependencies 'rr', :require => false, :group => 'test' case options[:test].to_s when 'rspec' inject_into_file 'spec/spec_helper.rb', "require 'rr'\n", :after => "\"/../config/boot\")\n" when 'minitest' insert_mocking_include "RR::Adapters::MiniTest", :path => "test/test_config.rb" else insert_mocking_include "RR::Adapters::TestUnit", :path => "test/test_config.rb" end end
Version data entries
21 entries across 21 versions & 1 rubygems