summaryrefslogtreecommitdiff
path: root/spec/lib/json_web_token/token_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/lib/json_web_token/token_spec.rb')
-rw-r--r--spec/lib/json_web_token/token_spec.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/spec/lib/json_web_token/token_spec.rb b/spec/lib/json_web_token/token_spec.rb
index 3d955e4d774..d7e7560d962 100644
--- a/spec/lib/json_web_token/token_spec.rb
+++ b/spec/lib/json_web_token/token_spec.rb
@@ -3,7 +3,10 @@ describe JSONWebToken::Token do
context 'custom parameters' do
let(:value) { 'value' }
- before { token[:key] = value }
+
+ before do
+ token[:key] = value
+ end
it { expect(token[:key]).to eq(value) }
it { expect(token.payload).to include(key: value) }