Skip to content

Commit

Permalink
Merge pull request #2433 from dblock/rack-version-specs
Browse files Browse the repository at this point in the history
Added Rack version specs to ensure the correct version is loaded.
  • Loading branch information
dblock committed May 12, 2024
2 parents fa18860 + 7fd63fe commit 82f1a09
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion spec/integration/rack_3_0/headers_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

describe Grape::Http::Headers, if: Gem::Version.new(Rack.release) >= Gem::Version.new('3') do
describe Grape::Http::Headers do
subject { last_response.headers }

describe 'returned headers should all be in lowercase' do
Expand Down
5 changes: 5 additions & 0 deletions spec/integration/rack_3_0/version_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# frozen_string_literal: true

describe Rack do
it { expect(Gem::Version.new(described_class.release).segments.first).to eq 3 }
end

0 comments on commit 82f1a09

Please sign in to comment.