Sha256: 44e58e33a338bc2c9fb523e937b4082bb6aa869af462c62c38aebafde1febfb1

Contents?: true

Size: 557 Bytes

Versions: 2

Compression:

Stored size: 557 Bytes

Contents

module Padrino
  module Generators
    module Components
      module Tests
        
        module BaconGen
          BACON_SETUP = (<<-TEST).gsub(/^ {10}/, '')
          class Bacon::Context
            include Rack::Test::Methods
          end

          def app
            CLASS_NAME.tap { |app| app.set :environment, :test }
          end
          TEST

          def setup_test
            require_dependencies 'bacon', :env => :testing
            insert_test_suite_setup BACON_SETUP
          end

        end
        
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
padrino-gen-0.1.1 lib/generators/components/tests/bacon_test_gen.rb
padrino-gen-0.1.0 lib/generators/components/tests/bacon_test_gen.rb