File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 101101      expect ( decoded_token [ 1 ] [ "alg" ] ) . to  eq  "HS256" 
102102    end 
103103
104-     it  "creates a signed JWT token using the deprecated encryption_method "  do 
104+     it  "creates a signed JWT token using the deprecated signing_method "  do 
105105      described_class . configure  do 
106106        token_payload  do 
107107          {  foo : "bar"  } 
108108        end 
109109
110110        secret_key  "super secret" 
111-         encryption_method  :hs256 
111+         signing_method  :hs256 
112112      end 
113113
114114      token  =  described_class . generate ( { } ) 
204204    end 
205205
206206    it  "creates a signed JWT token with an ECDSA key from a string"  do 
207-       secret_key  =  OpenSSL ::PKey ::EC . new ( "secp521r1" ) 
208-        secret_key . generate_key 
209-       public_key  =  OpenSSL ::PKey ::EC . new   secret_key 
207+       secret_key  =  OpenSSL ::PKey ::EC . generate ( "secp521r1" ) 
208+ 
209+       public_key  =  OpenSSL ::PKey ::EC . new ( secret_key ) 
210210      public_key . private_key  =  nil 
211211
212212      described_class . configure  do 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments