Sha256: 5186fd835db71745eb733ad6e70cb787820570d0746176f43952b68097af8889

Contents?: true

Size: 742 Bytes

Versions: 11

Compression:

Stored size: 742 Bytes

Contents

module Padrino
  module Generators
    module Components
      module Mocks

        module RrGen
          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","  Riot.rr\n", :after => "class Riot::Situation\n"
              else
                insert_mocking_include "RR::Adapters::RRMethods", :path => "test/test_config.rb"
            end
          end
        end # RrGen
      end # Mocks
    end # Components
  end # Generators
end # Padrino

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
padrino-gen-0.9.6 lib/padrino-gen/generators/components/mocks/rr_gen.rb
padrino-gen-0.9.5 lib/padrino-gen/generators/components/mocks/rr_gen.rb
padrino-gen-0.9.4 lib/padrino-gen/generators/components/mocks/rr_gen.rb
padrino-gen-0.9.3 lib/padrino-gen/generators/components/mocks/rr_gen.rb
padrino-gen-0.9.2 lib/padrino-gen/generators/components/mocks/rr_gen.rb
padrino-gen-0.9.1 lib/padrino-gen/generators/components/mocks/rr_gen.rb
padrino-gen-0.9.0 lib/padrino-gen/generators/components/mocks/rr_gen.rb
padrino-gen-0.8.5 lib/padrino-gen/generators/components/mocks/rr_gen.rb
padrino-gen-0.8.4 lib/padrino-gen/generators/components/mocks/rr_gen.rb
padrino-gen-0.8.3 lib/padrino-gen/generators/components/mocks/rr_gen.rb
padrino-gen-0.8.2 lib/padrino-gen/generators/components/mocks/rr_gen.rb