Sha256: db76aade338d07d3fd60f8fafadb556ae327cdcaf402cb32cda6e2bb96b44fdd
Contents?: true
Size: 290 Bytes
Versions: 9
Compression:
Stored size: 290 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 => "Spec::Runner.configure do |conf|\n" else insert_mocking_include "Mocha::API" end end
Version data entries
9 entries across 9 versions & 1 rubygems