Sha256: b29640a1b6ddac85738a439990cd24ed02e44784c7ce5d761ec9df1b200883f8

Contents?: true

Size: 293 Bytes

Versions: 4

Compression:

Stored size: 293 Bytes

Contents

require_relative "../lib/tynn/all_methods"

Tynn.plugin(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.4.0 test/all_methods_test.rb
tynn-1.3.0 test/all_methods_test.rb
tynn-1.2.0 test/all_methods_test.rb
tynn-1.1.0 test/all_methods_test.rb