Sha256: f4ca43e7e650a42be9e31840aa81a562e2b4ffa837533c3f7f9b87f4d692d999

Contents?: true

Size: 332 Bytes

Versions: 7

Compression:

Stored size: 332 Bytes

Contents

# encoding: UTF-8

config_path = File.expand_path '../../../examples/config.rb', File.dirname(__FILE__)
require_relative config_path

shared_context "All routes" do
  include Rack::Test::Methods
  let(:app){ 
    Example.app 
  }
end

shared_examples_for "Any route" do
  subject {
    last_response
  }
  it { should be_ok }
end


Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
sinatra-exstatic-assets-3.1.1 spec/support/shared/all_routes.rb
sinatra-exstatic-assets-3.1.0 spec/support/shared/all_routes.rb
sinatra-exstatic-assets-3.0.0 spec/support/shared/all_routes.rb
sinatra-exstatic-assets-2.0.4 spec/support/shared/all_routes.rb
sinatra-exstatic-assets-2.0.3 spec/support/shared/all_routes.rb
sinatra-exstatic-assets-2.0.1 spec/support/shared/all_routes.rb
sinatra-exstatic-assets-2.0.0 spec/support/shared/all_routes.rb