spec/document_spec.rb in metainspector-5.14.0 vs spec/document_spec.rb in metainspector-5.15.0

- old
+ new

@@ -128,14 +128,14 @@ end end describe 'url normalization' do it 'should normalize by default' do - expect(MetaInspector.new('http://example.com/%EF%BD%9E').url).to eq('http://example.com/~') + expect(MetaInspector.new('http://example.com?name=joe martins', allow_redirections: false).url).to eq('http://example.com/?name=joe%20martins') end it 'should not normalize if the normalize_url option is false' do - expect(MetaInspector.new('http://example.com/%EF%BD%9E', normalize_url: false).url).to eq('http://example.com/%EF%BD%9E') + expect(MetaInspector.new('http://example.com?name=joe martins', normalize_url: false, allow_redirections: false).url).to eq('http://example.com?name=joe martins') end end describe 'page encoding' do it 'should encode title according to the charset' do