Sha256: 8061399a20d697371307eceb6f0ad98dee4f64f9305c44695c6b52f4bc837551
Contents?: true
Size: 423 Bytes
Versions: 1
Compression:
Stored size: 423 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" when 'rspec1' 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
padrino-gen-0.9.19 | lib/padrino-gen/generators/components/mocks/mocha.rb |