Skip to content

Commit 7d07487

Browse files
committed
Restore derivation.
1 parent 1c32d47 commit 7d07487

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

lib/protocol/http/middleware.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
module Protocol
1212
module HTTP
13-
class Middleware
13+
class Middleware < Methods
1414
# Convert a block to a middleware delegate.
1515
def self.for(&block)
1616
def block.close

test/protocol/http/methods.rb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,11 @@
3131
it_behaves_like ValidMethod, "DELETE"
3232
it_behaves_like ValidMethod, "HEAD"
3333
it_behaves_like ValidMethod, "OPTIONS"
34-
it_behaves_like ValidMethod, "LINK"
35-
it_behaves_like ValidMethod, "UNLINK"
3634
it_behaves_like ValidMethod, "TRACE"
3735
it_behaves_like ValidMethod, "CONNECT"
3836

39-
it "defines exactly 11 methods" do
40-
expect(subject.constants.length).to be == 11
37+
it "defines exactly 9 methods" do
38+
expect(subject.constants.length).to be == 9
4139
end
4240

4341
with '.valid?' do

0 commit comments

Comments
 (0)