Sha256: fe1fb72d408600fb97db168d650530875663e2102791f60c95aab9f0c83352bd
Contents?: true
Size: 448 Bytes
Versions: 8
Compression:
Stored size: 448 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 => "Spec::Runner.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
8 entries across 8 versions & 1 rubygems