Sha256: 6cf5a3474225239de9824397a1eb4fd57487f8005378734a297ea9cec10feba7
Contents?: true
Size: 566 Bytes
Versions: 11
Compression:
Stored size: 566 Bytes
Contents
def setup_mock require_dependencies 'rr', :group => 'test' case options[:test].to_s when 'rspec' inject_into_file 'spec/spec_helper.rb', " conf.mock_with :rr\n", :after => "RSpec.configure do |conf|\n" when 'riot' inject_into_file "test/test_config.rb","require 'riot/rr'\n", :after => "\"/../config/boot\")\n" when 'minitest' insert_mocking_include "RR::Adapters::MiniTest", :path => "test/test_config.rb" else # default include insert_mocking_include "RR::Adapters::RRMethods", :path => "test/test_config.rb" end end
Version data entries
11 entries across 11 versions & 1 rubygems