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