Sha256: d4748fad20394300841cfcdf1f46e65505b4c085438a8e6b4c4e98340d74159a

Contents?: true

Size: 503 Bytes

Versions: 1

Compression:

Stored size: 503 Bytes

Contents

if ENV['COVERAGE']
  require 'simplecov'
  SimpleCov.start
end

require 'rack/test'
require 'sinatra/muster'

RSpec.configure do |config|
  config.treat_symbols_as_metadata_keys_with_true_values = true
  config.run_all_when_everything_filtered = true
  config.filter_run :focus
end

def mock_app(base=Sinatra::Base, &block)
  Sinatra.new(base, &block)
end

def modular_app(&block)
  mock_app do
    register Sinatra::Muster

    use Muster::Rack, Muster::Strategies::Hash

    get '/', &block
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sinatra-muster-0.0.1 spec/spec_helper.rb