mirror of
https://gitea.invidious.io/iv-org/protodec.git
synced 2024-08-15 00:43:18 +00:00
Update specs
This commit is contained in:
parent
fb32c09253
commit
88d3395b1e
1 changed files with 2 additions and 2 deletions
|
@ -2,7 +2,7 @@ require "./spec_helper"
|
||||||
|
|
||||||
describe Protodec do
|
describe Protodec do
|
||||||
it "decodes Base64 data" do
|
it "decodes Base64 data" do
|
||||||
input = "4qmFsgIrEhhVQ0NqOTU2SUY2MkZiVDdHb3VzemFqOXcaD0VnbGpiMjF0ZFc1cGRIaw"
|
input = "4qmFsgIsEhhVQ0NqOTU2SUY2MkZiVDdHb3VzemFqOXcaEEVnbGpiMjF0ZFc1cGRIaz0"
|
||||||
output = input.strip
|
output = input.strip
|
||||||
.try { |i| URI.decode_www_form(i) }
|
.try { |i| URI.decode_www_form(i) }
|
||||||
.try { |i| URI.decode_www_form(i) }
|
.try { |i| URI.decode_www_form(i) }
|
||||||
|
@ -24,6 +24,6 @@ describe Protodec do
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
Base64.urlsafe_encode(Protodec::Any.from_json(object), padding: false).should eq("4qmFsgIrEhhVQ0NqOTU2SUY2MkZiVDdHb3VzemFqOXcaD0VnbGpiMjF0ZFc1cGRIaw")
|
Base64.urlsafe_encode(Protodec::Any.from_json(object), padding: false).should eq("4qmFsgIsEhhVQ0NqOTU2SUY2MkZiVDdHb3VzemFqOXcaEEVnbGpiMjF0ZFc1cGRIaz0")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue