Sha256: 762e325f7b216035ac331c2090f73029149bee6f5deed6e54ec48349260ca217

Contents?: true

Size: 412 Bytes

Versions: 3

Compression:

Stored size: 412 Bytes

Contents

require 'test_helper'

class RackTest < Test::Unit::TestCase
  include Rack::Test::Methods
  
  def app
    Golf::Rack.new
  end

  def test_component_regeneration
    get "/components.js"
    assert last_response.ok?
  end

  def test_resource_serving
    get "/jquery.js"
    assert last_response.ok?

    get "/jquery.golf.js"
    assert last_response.ok?

    get "/"
    assert last_response.ok?
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
golf-0.1.1 test/test_rack.rb
golf-0.1.0 test/test_rack.rb
golf-0.0.9 test/test_rack.rb