Sha256: 872309e96d810c335409e13f53f82d148aa04ac199b5bb8ef59731a1a9cef1ee

Contents?: true

Size: 308 Bytes

Versions: 8

Compression:

Stored size: 308 Bytes

Contents

require_relative "test_helper"

class TestApp < Thomler::Application
end

class ThomlerTestApp < Test::Unit::TestCase
  include Rack::Test::Methods

  def app
    TestApp.new
  end

  def test_request
    get "/"

    assert last_response.ok?
    body = last_response.body
    assert body["Hello"]
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
thomler-0.1.8 test/test_application.rb
thomler-0.1.7 test/test_application.rb
thomler-0.1.6 test/test_application.rb
thomler-0.1.5 test/test_application.rb
thomler-0.1.4 test/test_application.rb
thomler-0.1.3 test/test_application.rb
thomler-0.1.2 test/test_application.rb
thomler-0.1.1 test/test_application.rb