spec/headers_spec.rb in api-auth-2.2.0 vs spec/headers_spec.rb in api-auth-2.2.1
- old
+ new
@@ -5,17 +5,9 @@
context 'uri edge cases' do
let(:request) { RestClient::Request.new(url: uri, method: :get) }
subject(:headers) { described_class.new(request) }
let(:uri) { '' }
- context 'empty uri' do
- let(:uri) { ''.freeze }
-
- it 'adds / to canonical string' do
- expect(subject.canonical_string).to eq('GET,,,/,')
- end
- end
-
context 'uri with just host without /' do
let(:uri) { 'http://google.com'.freeze }
it 'return / as canonical string path' do
expect(subject.canonical_string).to eq('GET,,,/,')