Sha256: 1548b6970bff185a5237200ec1067260b828f7d63fdc36ccd79b4bcb890ddfb8

Contents?: true

Size: 247 Bytes

Versions: 6

Compression:

Stored size: 247 Bytes

Contents

require_relative "../lib/tynn/static"

test "static" do
  Tynn.helpers(Tynn::Static, %w(/test), root: Dir.pwd)

  Tynn.define do
  end

  app = Tynn::Test.new
  app.get("/test/static_test.rb")

  assert_equal File.read(__FILE__), app.res.body
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
tynn-1.0.0 test/static_test.rb
tynn-1.0.0.rc3 test/static_test.rb
tynn-1.0.0.rc2 test/static_test.rb
tynn-1.0.0.rc1 test/static_test.rb
tynn-0.0.4 test/static_test.rb
tynn-0.0.3 test/static_test.rb