Sha256: 825f1212e481e2882c04107cfe01521e4369f20617ceac99e804922a42eac11a

Contents?: true

Size: 294 Bytes

Versions: 4

Compression:

Stored size: 294 Bytes

Contents

require_relative "../lib/tynn/all_methods"

Tynn.helpers(Tynn::AllMethods)

test "methods" do
  [:head, :options].each do |method|
    Tynn.define do
      send(method) { res.write "" }
    end

    app = Tynn::Test.new
    app.send(method, "/")

    assert_equal 200, app.res.status
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
tynn-1.0.0 test/all_methods_test.rb
tynn-1.0.0.rc3 test/all_methods_test.rb
tynn-1.0.0.rc2 test/all_methods_test.rb
tynn-1.0.0.rc1 test/all_methods_test.rb