Skip to content

Commit

Permalink
Fix decode error test.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaoru Maeda committed Sep 23, 2014
1 parent 61db3ee commit 2c196cf
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions spec/connection_spec.rb
Expand Up @@ -237,9 +237,7 @@

it "should raise connection error on decode exception" do
@conn << f.generate(SETTINGS)
frame = f.generate(HEADERS.dup)
frame[2] = 0.chr

frame = f.generate(DATA.dup) # Receiving DATA on unopened stream 1 is an error.
expect { @conn << frame }.to raise_error(ProtocolError)
end

Expand Down

0 comments on commit 2c196cf

Please sign in to comment.