spec/unit/secretkey_spec.rb in secretkey-1.1.0 vs spec/unit/secretkey_spec.rb in secretkey-1.1.1

- old
+ new

@@ -29,11 +29,11 @@ context 'when timestamp is invalid' do let(:timestamp) { 'askdfjlakshfdkjasd' } it 'produces an Argument Error' do - expect(lambda { secret_key.token }).to raise_error(ArgumentError, 'Time Stamp is not a valid integer.') + expect{ secret_key.token }.to raise_error(ArgumentError, 'Time Stamp is not a valid integer.') end end end end -end \ No newline at end of file +end