diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2015-08-11 21:09:11 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2015-08-11 21:09:11 +0900 |
commit | 45517dac41ca3ae0575a936576b7cc6828458244 (patch) | |
tree | 0246b15d62dcabf3b10be7ac03cdac04eb459b34 /test | |
parent | d581eb29ee7239e84371a7fdf4e89f70b4f176f9 (diff) | |
download | plum-45517dac41ca3ae0575a936576b7cc6828458244.tar.gz |
error: ERROR_CODES should be in HTTPError class
Diffstat (limited to 'test')
-rw-r--r-- | test/plum/stream/test_handle_frame.rb | 2 | ||||
-rw-r--r-- | test/plum/test_connection_utils.rb | 2 | ||||
-rw-r--r-- | test/plum/test_frame_factory.rb | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/test/plum/stream/test_handle_frame.rb b/test/plum/stream/test_handle_frame.rb index a8127c4..de12217 100644 --- a/test/plum/stream/test_handle_frame.rb +++ b/test/plum/stream/test_handle_frame.rb @@ -198,7 +198,7 @@ class StreamHandleFrameTest < Minitest::Test payload: payload)) last = sent_frames.last assert_equal(:rst_stream, last.type) - assert_equal(ERROR_CODES[:protocol_error], last.payload.uint32) + assert_equal(HTTPError::ERROR_CODES[:protocol_error], last.payload.uint32) } end diff --git a/test/plum/test_connection_utils.rb b/test/plum/test_connection_utils.rb index 926d21d..faa8782 100644 --- a/test/plum/test_connection_utils.rb +++ b/test/plum/test_connection_utils.rb @@ -23,7 +23,7 @@ class ServerConnectionUtilsTest < Minitest::Test assert_equal(:goaway, last.type) assert_equal([], last.flags) assert_equal(3, last.payload.uint32) - assert_equal(ERROR_CODES[:stream_closed], last.payload.uint32(4)) + assert_equal(HTTPError::ERROR_CODES[:stream_closed], last.payload.uint32(4)) } end end diff --git a/test/plum/test_frame_factory.rb b/test/plum/test_frame_factory.rb index 2c7f2de..ff8e67f 100644 --- a/test/plum/test_frame_factory.rb +++ b/test/plum/test_frame_factory.rb @@ -7,7 +7,7 @@ class FrameFactoryTest < Minitest::Test assert_frame(frame, type: :rst_stream, stream_id: 123) - assert_equal(ERROR_CODES[:stream_closed], frame.payload.uint32) + assert_equal(HTTPError::ERROR_CODES[:stream_closed], frame.payload.uint32) end def test_goaway |