File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 1010
1111module 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
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments