spec/slosilo_spec.rb in slosilo-2.1.1 vs spec/slosilo_spec.rb in slosilo-2.2.1
- old
+ new
@@ -98,26 +98,26 @@
end
end
it "accepts pre-parsed JSON serialization" do
expect(Slosilo.token_signer(
- 'protected' => 'eyJraWQiOiJkMjhlM2EzNDdlMzY4NDE2YjMxMjlhNDBjMWI4ODdmZSJ9',
+ 'protected' => 'eyJraWQiOiIxMDdiZGI4NTAxYzQxOWZhZDJmZGIyMGI0NjdkNGQwYTYyYTE2YTk4YzM1ZjJkYTBlYjNiMWZmOTI5Nzk1YWQ5In0=',
'payload' => 'e30=',
'signature' => 'c2ln'
)).to eq 'test'
end
it "accepts pre-parsed JWT token" do
expect(Slosilo.token_signer(Slosilo::JWT(
- 'protected' => 'eyJraWQiOiJkMjhlM2EzNDdlMzY4NDE2YjMxMjlhNDBjMWI4ODdmZSJ9',
+ 'protected' => 'eyJraWQiOiIxMDdiZGI4NTAxYzQxOWZhZDJmZGIyMGI0NjdkNGQwYTYyYTE2YTk4YzM1ZjJkYTBlYjNiMWZmOTI5Nzk1YWQ5In0=',
'payload' => 'e30=',
'signature' => 'c2ln'
))).to eq 'test'
end
it "accepts compact serialization" do
expect(Slosilo.token_signer(
- 'eyJraWQiOiJkMjhlM2EzNDdlMzY4NDE2YjMxMjlhNDBjMWI4ODdmZSJ9.e30=.c2ln'
+ 'eyJraWQiOiIxMDdiZGI4NTAxYzQxOWZhZDJmZGIyMGI0NjdkNGQwYTYyYTE2YTk4YzM1ZjJkYTBlYjNiMWZmOTI5Nzk1YWQ5In0=.e30=.c2ln'
)).to eq 'test'
end
end
end
end