Sha256: 2183fec5bf512409ba924ff7c0dc0558c30c1c7b35d8d815cef61622bdb68ccf
Contents?: true
Size: 283 Bytes
Versions: 12
Compression:
Stored size: 283 Bytes
Contents
def setup_mock require_dependencies 'mocha', :group => 'test' case options[:test].to_s when 'rspec' inject_into_file 'spec/spec_helper.rb', " conf.mock_with :mocha\n", :after => "RSpec.configure do |conf|\n" else insert_mocking_include "Mocha::API" end end
Version data entries
12 entries across 12 versions & 1 rubygems