mirror of
https://github.com/sinatra/sinatra
synced 2023-03-27 23:18:01 -04:00
1559a20b06
__dir__ is nice, and available.
12 lines
354 B
Ruby
12 lines
354 B
Ruby
require File.expand_path('helper', __dir__)
|
|
|
|
class SinatraTest < Minitest::Test
|
|
it 'creates a new Sinatra::Base subclass on new' do
|
|
app = Sinatra.new { get('/') { 'Hello World' } }
|
|
assert_same Sinatra::Base, app.superclass
|
|
end
|
|
|
|
it "responds to #template_cache" do
|
|
assert_kind_of Tilt::Cache, Sinatra::Base.new!.template_cache
|
|
end
|
|
end
|