Sha256: d9f6f2a3b583cbbf5a75dbc7efa18474838b56fbf61524817fb0ad73b5266ca2

Contents?: true

Size: 345 Bytes

Versions: 4

Compression:

Stored size: 345 Bytes

Contents

module SinatraMore
  module BaconTestGen
    BACON_SETUP = <<-TEST
\nclass Bacon::Context
  include Rack::Test::Methods
end

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

    def setup_test
      insert_require 'bacon', :path => "test/test_config.rb"
      insert_test_suite_setup BACON_SETUP
    end
    
  end
end


Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
sinatra_more-0.3.10 generators/components/tests/bacon_test_gen.rb
sinatra_more-0.3.9 generators/components/tests/bacon_test_gen.rb
sinatra_more-0.3.8 generators/components/tests/bacon_test_gen.rb
sinatra_more-0.3.7 generators/components/tests/bacon_test_gen.rb