nayutaya-webhook-dispatcher 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,20 +0,0 @@
1
-
2
- require File.dirname(__FILE__) + "/test_helper"
3
- require "webhook-dispatcher/request/base"
4
-
5
- class RequestBaseTest < Test::Unit::TestCase
6
- def setup
7
- @klass = WebHookDispatcher::Request::Base
8
- end
9
-
10
- def test_initialize
11
- req = @klass.new(URI.parse("http://example.jp"))
12
- assert_equal(URI.parse("http://example.jp"), req.uri)
13
- end
14
-
15
- def test_uri_attr
16
- req = @klass.new(URI.parse("http://example.com"))
17
- req.uri = URI.parse("http://example.org")
18
- assert_equal(URI.parse("http://example.org"), req.uri)
19
- end
20
- end
@@ -1,14 +0,0 @@
1
-
2
- require File.dirname(__FILE__) + "/test_helper"
3
- require "webhook-dispatcher/request/get"
4
-
5
- class RequestGetTest < Test::Unit::TestCase
6
- def setup
7
- @klass = WebHookDispatcher::Request::Get
8
- end
9
-
10
- def test_initialize
11
- req = @klass.new(URI.parse("http://example.jp"))
12
- assert_equal(URI.parse("http://example.jp"), req.uri)
13
- end
14
- end