spec/jwt/client_capability_spec.rb in twilio-ruby-5.0.0.rc26 vs spec/jwt/client_capability_spec.rb in twilio-ruby-5.0.0

- old
+ new

@@ -72,11 +72,11 @@ end it 'complete payload' do @incomingScope = Twilio::JWT::ClientCapability::IncomingClientScope.new('test-client-name') @clientCapability.add_scope(@incomingScope) - payload, _ = ::JWT.decode @clientCapability.to_s, 'authToken', true, {:algorithm=>'HS256'} + payload, _ = ::JWT.decode(@clientCapability.to_s, 'authToken', true, { algorithm: 'HS256' }) escope = 'scope:client:incoming?clientName=test-client-name' expect(payload['iss']).to eq('accountSid') expect(payload['scope']).to eq(escope) expect(payload['exp']).to be > Time.now.to_i expect(payload['nbf']).to be <= Time.now.to_i @@ -97,8 +97,8 @@ it 'Scope raise exception' do class DummyScope include Twilio::JWT::Scope end @dummyScope = DummyScope.new - expect{@dummyScope._generate_payload}.to raise_error(RuntimeError) + expect { @dummyScope._generate_payload }.to raise_error(RuntimeError) end -end \ No newline at end of file +end