Sha256: caefb7ba41c3abb3c8dfdefec3b3b5fe56c15d1d9fe52342e9e1955287c17a12

Contents?: true

Size: 441 Bytes

Versions: 12

Compression:

Stored size: 441 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 => "RSpec.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

12 entries across 12 versions & 1 rubygems

Version Path
padrino-gen-0.10.1 lib/padrino-gen/generators/components/mocks/rr.rb
padrino-gen-0.10.0 lib/padrino-gen/generators/components/mocks/rr.rb
padrino-gen-0.9.29 lib/padrino-gen/generators/components/mocks/rr.rb
padrino-gen-0.9.28 lib/padrino-gen/generators/components/mocks/rr.rb
padrino-gen-0.9.27 lib/padrino-gen/generators/components/mocks/rr.rb
padrino-gen-0.9.26 lib/padrino-gen/generators/components/mocks/rr.rb
padrino-gen-0.9.24 lib/padrino-gen/generators/components/mocks/rr.rb
padrino-gen-0.9.25 lib/padrino-gen/generators/components/mocks/rr.rb
padrino-gen-0.9.23 lib/padrino-gen/generators/components/mocks/rr.rb
padrino-gen-0.9.22 lib/padrino-gen/generators/components/mocks/rr.rb
padrino-gen-0.9.21 lib/padrino-gen/generators/components/mocks/rr.rb
padrino-gen-0.9.20 lib/padrino-gen/generators/components/mocks/rr.rb