Skip to content

Commit

Permalink
Added other headers to integration specs
Browse files Browse the repository at this point in the history
  • Loading branch information
schinery committed Oct 23, 2023
1 parent 32ca429 commit 2d87076
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spec/integration/rack/v2/headers_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# frozen_string_literal: true

describe Grape::Http::Headers do
it { expect(described_class::ALLOW).to eq('Allow') }
it { expect(described_class::CACHE_CONTROL).to eq('Cache-Control') }
it { expect(described_class::CONTENT_LENGTH).to eq('Content-Length') }
it { expect(described_class::CONTENT_TYPE).to eq('Content-Type') }
it { expect(described_class::LOCATION).to eq('Location') }
it { expect(described_class::TRANSFER_ENCODING).to eq('Transfer-Encoding') }
it { expect(described_class::X_CASCADE).to eq('X-Cascade') }
end
5 changes: 5 additions & 0 deletions spec/integration/rack/v3/headers_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# frozen_string_literal: true

describe Grape::Http::Headers do
it { expect(described_class::ALLOW).to eq('allow') }
it { expect(described_class::CACHE_CONTROL).to eq('cache-control') }
it { expect(described_class::CONTENT_LENGTH).to eq('content-length') }
it { expect(described_class::CONTENT_TYPE).to eq('content-type') }
it { expect(described_class::LOCATION).to eq('location') }
it { expect(described_class::TRANSFER_ENCODING).to eq('transfer-encoding') }
it { expect(described_class::X_CASCADE).to eq('x-cascade') }
end

0 comments on commit 2d87076

Please sign in to comment.