Skip to content

Commit

Permalink
Fix spec
Browse files Browse the repository at this point in the history
  • Loading branch information
kzaitsev committed Feb 26, 2024
1 parent 5f13929 commit a531da7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/lib/public_key_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -118,15 +118,15 @@
let(:key) { File.read('spec/fixtures/ecc_public_key') }

specify do
expect(described_class.parse(key).created_at.to_s).to eq('2024-02-26 12:33:15 +0200')
expect(described_class.parse(key).created_at.utc.to_s).to eq('2024-02-26 10:33:15 UTC')
end
end

context 'with RSA key' do
let(:key) { File.read('spec/fixtures/rsa_public_key') }

specify do
expect(described_class.parse(key).created_at.to_s).to eq('2024-02-26 13:29:15 +0200')
expect(described_class.parse(key).created_at.utc.to_s).to eq('2024-02-26 11:29:15 UTC')
end
end
end
Expand Down

0 comments on commit a531da7

Please sign in to comment.