Sha256: e09dcb82314fbf5dad540fc4620a39765ffe60fbf5e5ae75a15d88d4f64598de

Contents?: true

Size: 272 Bytes

Versions: 37

Compression:

Stored size: 272 Bytes

Contents

require File.dirname(__FILE__) + '/helper'

describe 'Sinatra' do
  it 'creates a new Sinatra::Base subclass on new' do
    app =
      Sinatra.new do
        get '/' do
          'Hello World'
        end
      end
    assert_same Sinatra::Base, app.superclass
  end
end

Version data entries

37 entries across 37 versions & 9 rubygems

Version Path
sinatra-sinatra-0.9.0.1 test/sinatra_test.rb
sinatra-sinatra-0.9.0.2 test/sinatra_test.rb
sinatra-sinatra-0.9.0.4 test/sinatra_test.rb
sinatra-sinatra-0.9.0.5 test/sinatra_test.rb
sinatra-sinatra-0.9.0 test/sinatra_test.rb
sinatra-sinatra-0.9.1.1 test/sinatra_test.rb
sinatra-sinatra-0.9.1.2 test/sinatra_test.rb
sinatra-sinatra-0.9.1 test/sinatra_test.rb
nbudin-castronaut-0.7.5 vendor/sinatra/test/sinatra_test.rb
sinatra-0.9.0.4 test/sinatra_test.rb
sinatra-0.9.0.1 test/sinatra_test.rb
sinatra-0.9.1.1 test/sinatra_test.rb
sinatra-0.9.0.2 test/sinatra_test.rb
sinatra-0.9.0.5 test/sinatra_test.rb
sinatra-0.9.1 test/sinatra_test.rb
sinatra-0.9.0 test/sinatra_test.rb
sinatra-0.9.0.3 test/sinatra_test.rb