mirror of
https://github.com/sinatra/sinatra
synced 2023-03-27 23:18:01 -04:00
ff0d068687
See <http://github.com/citrusbyte/contest> for more info. The contest.rb file is included under the test/ directory.
13 lines
291 B
Ruby
13 lines
291 B
Ruby
require File.dirname(__FILE__) + '/helper'
|
|
|
|
class SinatraTest < Test::Unit::TestCase
|
|
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
|