mirror of
https://github.com/sinatra/sinatra
synced 2023-03-27 23:18:01 -04:00
f10e571f4d
We use minitest for Sinatra's test suite but we weren't using its rake task. I've updated the Rakefile to require and use Minitest default rake task to simplify. Another change is to rename the `helper.rb` file to `test_helper.rb` because I think that name is used more in the community and require it directly without calling `File.expand_path`
12 lines
341 B
Ruby
12 lines
341 B
Ruby
require_relative 'test_helper'
|
|
|
|
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
|