Sha256: a7dab97bccb12dbc67ca69ad9bb0ee6206aa12bf2a152e954a477f0f7d2d79c7

Contents?: true

Size: 409 Bytes

Versions: 71

Compression:

Stored size: 409 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 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

71 entries across 69 versions & 7 rubygems

Version Path
classiccms-0.7.5 vendor/bundle/gems/sinatra-1.3.2/test/sinatra_test.rb
classiccms-0.7.4 vendor/bundle/gems/sinatra-1.3.2/test/sinatra_test.rb
classiccms-0.7.3 vendor/bundle/gems/sinatra-1.3.2/test/sinatra_test.rb
torquebox-console-0.3.0 vendor/bundle/jruby/1.9/gems/sinatra-1.3.5/test/sinatra_test.rb
classiccms-0.7.2 vendor/bundle/gems/sinatra-1.3.2/test/sinatra_test.rb
classiccms-0.7.1 vendor/bundle/gems/sinatra-1.3.2/test/sinatra_test.rb
classiccms-0.7.0 vendor/bundle/gems/sinatra-1.3.2/test/sinatra_test.rb
torquebox-console-0.2.5 vendor/bundle/jruby/1.9/gems/sinatra-1.3.5/test/sinatra_test.rb
torquebox-console-0.2.5 vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/test/sinatra_test.rb
sinatra-1.3.6 test/sinatra_test.rb
torquebox-console-0.2.4 vendor/bundle/ruby/1.8/gems/sinatra-1.3.5/test/sinatra_test.rb
torquebox-console-0.2.4 vendor/bundle/jruby/1.9/gems/sinatra-1.3.5/test/sinatra_test.rb
torquebox-console-0.2.3 vendor/bundle/jruby/1.9/gems/sinatra-1.3.5/test/sinatra_test.rb
sinatra-1.3.5 test/sinatra_test.rb
sinatra-1.3.4 test/sinatra_test.rb
classiccms-0.6.9 vendor/bundle/gems/sinatra-1.3.2/test/sinatra_test.rb
classiccms-0.6.8 vendor/bundle/gems/sinatra-1.3.2/test/sinatra_test.rb
classiccms-0.6.7 vendor/bundle/gems/sinatra-1.3.2/test/sinatra_test.rb
classiccms-0.6.6 vendor/bundle/gems/sinatra-1.3.2/test/sinatra_test.rb
jellyfish-0.5.0 sinatra/sinatra_test.rb