Skip to content

Commit 2d87076

Browse files
committed
Added other headers to integration specs
1 parent 32ca429 commit 2d87076

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
# frozen_string_literal: true
22

33
describe Grape::Http::Headers do
4+
it { expect(described_class::ALLOW).to eq('Allow') }
5+
it { expect(described_class::CACHE_CONTROL).to eq('Cache-Control') }
6+
it { expect(described_class::CONTENT_LENGTH).to eq('Content-Length') }
47
it { expect(described_class::CONTENT_TYPE).to eq('Content-Type') }
8+
it { expect(described_class::LOCATION).to eq('Location') }
9+
it { expect(described_class::TRANSFER_ENCODING).to eq('Transfer-Encoding') }
510
it { expect(described_class::X_CASCADE).to eq('X-Cascade') }
611
end
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
# frozen_string_literal: true
22

33
describe Grape::Http::Headers do
4+
it { expect(described_class::ALLOW).to eq('allow') }
5+
it { expect(described_class::CACHE_CONTROL).to eq('cache-control') }
6+
it { expect(described_class::CONTENT_LENGTH).to eq('content-length') }
47
it { expect(described_class::CONTENT_TYPE).to eq('content-type') }
8+
it { expect(described_class::LOCATION).to eq('location') }
9+
it { expect(described_class::TRANSFER_ENCODING).to eq('transfer-encoding') }
510
it { expect(described_class::X_CASCADE).to eq('x-cascade') }
611
end

0 commit comments

Comments
 (0)