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

Version Path
padrino-gen-0.9.18 lib/padrino-gen/generators/components/mocks/mocha.rb
padrino-gen-0.9.17 lib/padrino-gen/generators/components/mocks/mocha.rb
padrino-gen-0.9.16 lib/padrino-gen/generators/components/mocks/mocha.rb
padrino-gen-0.9.15 lib/padrino-gen/generators/components/mocks/mocha.rb
padrino-gen-0.9.14 lib/padrino-gen/generators/components/mocks/mocha.rb
padrino-gen-0.9.13 lib/padrino-gen/generators/components/mocks/mocha.rb
padrino-gen-0.9.12 lib/padrino-gen/generators/components/mocks/mocha.rb
padrino-gen-0.9.11 lib/padrino-gen/generators/components/mocks/mocha.rb
padrino-gen-0.9.10 lib/padrino-gen/generators/components/mocks/mocha.rb