16 lines
292 B
Ruby
16 lines
292 B
Ruby
![]() |
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
|