Skip to content

Commit

Permalink
Merge branch 'master' into rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
mullermp authored Jun 10, 2024
2 parents 52f0df3 + 29aac7b commit 2869d55
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

source 'https://rubygems.org'

gemspec
gem 'rake', require: false

group :development do
Expand Down
2 changes: 2 additions & 0 deletions http-2.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,7 @@ Gem::Specification.new do |spec|
spec.license = 'MIT'
spec.files = Dir['LICENSE', 'README.md', 'lib/**/*.rb']

spec.add_runtime_dependency 'base64'

spec.required_ruby_version = '>= 2.5'
end
9 changes: 8 additions & 1 deletion spec/compressor_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -629,8 +629,15 @@
end
end

subject do
if ex[:streams][nth][:has_bad_headers]
@cc.encode(ex[:streams][nth][:emitted], ensure_proper_ordering: false)
else
@cc.encode(ex[:streams][nth][:emitted])
end
end

it 'emits expected bytes on wire' do
puts subject.unpack1('H*')
expect(subject.unpack1('H*')).to eq ex[:streams][nth][:wire].delete(" \n")
end

Expand Down

0 comments on commit 2869d55

Please sign in to comment.