Sha256: 7731cfe694e63b0e93441b7df8b250d6c62fab441006e848c7d5a3971b08d063
Contents?: true
Size: 867 Bytes
Versions: 2
Compression:
Stored size: 867 Bytes
Contents
# frozen_string_literal: true require_relative 'helper' class ImpressionModuleTest < MiniTest::Test def test_resource_method r1 = Impression.resource do |req| req.respond('foobar', ':status' => Qeweney::Status::TEAPOT) end req = mock_req(':method' => 'GET', ':path' => '/') r1.route_and_call(req) assert_equal 'foobar', req.response_body assert_equal Qeweney::Status::TEAPOT, req.response_status end def test_file_tree_method r1 = Impression.file_tree(path: '/foo', directory: '/bar') assert_kind_of Impression::FileTree, r1 assert_equal '/foo', r1.path assert_equal '/bar', r1.directory end def test_jamstack_method r1 = Impression.jamstack(path: '/foo', directory: '/bar') assert_kind_of Impression::Jamstack, r1 assert_equal '/foo', r1.path assert_equal '/bar', r1.directory end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
impression-0.11 | test/test_impression.rb |
impression-0.10 | test/test_impression.rb |