Sha256: caefb7ba41c3abb3c8dfdefec3b3b5fe56c15d1d9fe52342e9e1955287c17a12
Contents?: true
Size: 441 Bytes
Versions: 12
Compression:
Stored size: 441 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" else insert_mocking_include "RR::Adapters::RRMethods", :path => "test/test_config.rb" end end
Version data entries
12 entries across 12 versions & 1 rubygems