Sha256: dc17fd05498663f691c5aa0bc439d1383b4d9ed39c683ec2b8741f2ebbd470a2

Contents?: true

Size: 403 Bytes

Versions: 10

Compression:

Stored size: 403 Bytes

Contents

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
  
  it "responds to #template_cache" do
    assert_kind_of Tilt::Cache, Sinatra::Base.new.template_cache
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
sinatra-1.1.4 test/sinatra_test.rb
sinatra-1.2.0 test/sinatra_test.rb
sinatra-1.2.0.d test/sinatra_test.rb
sinatra-1.1.3 test/sinatra_test.rb
sinatra-1.2.0.c test/sinatra_test.rb
sinatra-1.1.2 test/sinatra_test.rb
sinatra-1.2.0.a test/sinatra_test.rb
sinatra-1.1.0 test/sinatra_test.rb
sinatra-1.1.b test/sinatra_test.rb
sinatra-1.1.a test/sinatra_test.rb