Sha256: 07c47869c0dce1fabea221fc8c5816a4b53cafddebc5d6834e5ab68db675fe8c

Contents?: true

Size: 434 Bytes

Versions: 21

Compression:

Stored size: 434 Bytes

Contents

def setup_mock
  require_dependencies 'rr', :require => false, :group => 'test'
  case options[:test].to_s
    when 'rspec'
      inject_into_file 'spec/spec_helper.rb', "require 'rr'\n", :after => "\"/../config/boot\")\n"
    when 'minitest'
      insert_mocking_include "RR::Adapters::MiniTest", :path => "test/test_config.rb"
    else
      insert_mocking_include "RR::Adapters::TestUnit", :path => "test/test_config.rb"
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
padrino-gen-0.16.0.pre3 lib/padrino-gen/generators/components/mocks/rr.rb
padrino-gen-0.16.0.pre2 lib/padrino-gen/generators/components/mocks/rr.rb
padrino-gen-0.15.3 lib/padrino-gen/generators/components/mocks/rr.rb
padrino-gen-0.15.2 lib/padrino-gen/generators/components/mocks/rr.rb
padrino-gen-0.15.1 lib/padrino-gen/generators/components/mocks/rr.rb
padrino-gen-0.15.0 lib/padrino-gen/generators/components/mocks/rr.rb
padrino-gen-0.14.4 lib/padrino-gen/generators/components/mocks/rr.rb
padrino-gen-0.14.3 lib/padrino-gen/generators/components/mocks/rr.rb
padrino-gen-0.14.2 lib/padrino-gen/generators/components/mocks/rr.rb
padrino-gen-0.13.3.4 lib/padrino-gen/generators/components/mocks/rr.rb
padrino-gen-0.14.1.1 lib/padrino-gen/generators/components/mocks/rr.rb
padrino-gen-0.14.1 lib/padrino-gen/generators/components/mocks/rr.rb
padrino-gen-0.14.0.2 lib/padrino-gen/generators/components/mocks/rr.rb
padrino-gen-0.14.0.1 lib/padrino-gen/generators/components/mocks/rr.rb
padrino-gen-0.14.0 lib/padrino-gen/generators/components/mocks/rr.rb
padrino-gen-0.14.0.rc2 lib/padrino-gen/generators/components/mocks/rr.rb
padrino-gen-0.14.0.rc1 lib/padrino-gen/generators/components/mocks/rr.rb
padrino-gen-0.13.3.3 lib/padrino-gen/generators/components/mocks/rr.rb
padrino-gen-0.13.3.2 lib/padrino-gen/generators/components/mocks/rr.rb
padrino-gen-0.13.3.1 lib/padrino-gen/generators/components/mocks/rr.rb