File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 1
1
# frozen_string_literal: true
2
2
3
3
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' ) }
4
7
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' ) }
5
10
it { expect ( described_class ::X_CASCADE ) . to eq ( 'X-Cascade' ) }
6
11
end
Original file line number Diff line number Diff line change 1
1
# frozen_string_literal: true
2
2
3
3
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' ) }
4
7
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' ) }
5
10
it { expect ( described_class ::X_CASCADE ) . to eq ( 'x-cascade' ) }
6
11
end
You can’t perform that action at this time.
0 commit comments