Sha256: ca1598cd18931cf4e632924e43ff6954d96ecbb521de8460b0eb5a9f63275b32

Contents?: true

Size: 292 Bytes

Versions: 4

Compression:

Stored size: 292 Bytes

Contents

require 'test/spec'
require 'sinatra/base'
require 'sinatra/test'

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

Version data entries

4 entries across 4 versions & 3 rubygems

Version Path
adamwiggins-sinatra-0.8.9 test/sinatra_test.rb
bmizerany-sinatra-0.9.0 test/sinatra_test.rb
rtomayko-sinatra-0.8.9 test/sinatra_test.rb
rtomayko-sinatra-0.9.0 test/sinatra_test.rb