Skip to content

Commit

Permalink
Add test to reproduce issue #188
Browse files Browse the repository at this point in the history
  • Loading branch information
excpt committed Sep 2, 2017
1 parent 62295f3 commit fc94a20
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions spec/jwt_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -248,4 +248,10 @@
JWT.decode([head, load, sign].join('.'), '', false)
end.not_to raise_error
end

it 'should not raise InvalidPayload exception if payload is an array' do
expect do
JWT.encode(['my', 'payload'], 'secret')
end.not_to raise_error
end
end

0 comments on commit fc94a20

Please sign in to comment.