Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

file 13 lines (12 sloc) 0.291 kb
1 2 3 4 5 6 7 8 9 10 11 12 13
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
Something went wrong with that request. Please try again.