Sha256: ade7caa21a4d5acba0359307cb8397437d3b706d973e4bf6cb8118aac84d69e8

Contents?: true

Size: 364 Bytes

Versions: 17

Compression:

Stored size: 364 Bytes

Contents

require File.expand_path('../helper', __FILE__)

class SinatraTest < Test::Unit::TestCase
  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

Version data entries

17 entries across 17 versions & 4 rubygems

Version Path
sinatra-acd-1.4.5 test/sinatra_test.rb
sinatra-1.4.5 test/sinatra_test.rb
mango-0.8.0 vendor/bundler/ruby/2.1.0/gems/sinatra-1.4.4/test/sinatra_test.rb
mango-0.7.1 vendor/bundler/ruby/2.0.0/gems/sinatra-1.4.4/test/sinatra_test.rb
mango-0.7.0 vendor/bundler/ruby/2.0.0/gems/sinatra-1.4.4/test/sinatra_test.rb
sinatra-1.4.4 test/sinatra_test.rb
sinatra-1.4.3 test/sinatra_test.rb
sinatra-1.4.2 test/sinatra_test.rb
sinatra-1.4.1 test/sinatra_test.rb
sinatra-1.4.0 test/sinatra_test.rb
sinatra-1.4.0.d test/sinatra_test.rb
sinatra-1.4.0.c test/sinatra_test.rb
sinatra-1.4.0.b test/sinatra_test.rb
sinatra-1.4.0.a test/sinatra_test.rb
devcenter-0.0.3 vendor/sinatra/test/sinatra_test.rb
devcenter-0.0.2 vendor/sinatra/test/sinatra_test.rb
devcenter-0.0.1 vendor/sinatra/test/sinatra_test.rb