Sha256: 5efabac07fe4e18325ab7e80c4a632b88ffa9aafa8f67c1d5f0472c3e79c275a

Contents?: true

Size: 447 Bytes

Versions: 1

Compression:

Stored size: 447 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 => "Spec::Runner.configure do |conf|\n"
    when 'riot'
      inject_into_file "test/test_config.rb","require 'riot/rr'\n", :after => "\"/../config/boot\"\n"
    else
      insert_mocking_include "RR::Adapters::RRMethods", :path => "test/test_config.rb"
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
padrino-gen-0.9.10 lib/padrino-gen/generators/components/mocks/rr.rb