test/pgp_test.rb in iostreams-0.13.0 vs test/pgp_test.rb in iostreams-0.14.0

- old
+ new

@@ -116,11 +116,11 @@ it 'lists public keys' do assert keys = IOStreams::Pgp.list_keys(email: email) assert_equal 1, keys.size assert key = keys.first - assert_equal key[:date], Date.today + assert_equal Date.today, key[:date] assert_equal email, key[:email] assert_includes key[:key_id], generated_key_id assert_equal 1024, key[:key_length] assert_includes ['R', 'rsa'], key[:key_type] assert_equal user_name, key[:name] @@ -135,11 +135,11 @@ it 'lists private keys' do assert keys = IOStreams::Pgp.list_keys(email: email, private: true) assert_equal 1, keys.size assert key = keys.first - assert_equal key[:date], Date.today + assert_equal Date.today, key[:date] assert_equal email, key[:email] assert_includes key[:key_id], generated_key_id assert_equal 1024, key[:key_length] assert_includes ['R', 'rsa'], key[:key_type] assert_equal user_name, key[:name] @@ -151,11 +151,11 @@ it 'extracts public key info' do assert keys = IOStreams::Pgp.key_info(key: public_key) assert_equal 1, keys.size assert key = keys.first - assert_equal key[:date], Date.today + assert_equal Date.today, key[:date] assert_equal email, key[:email] assert_includes key[:key_id], generated_key_id assert_equal 1024, key[:key_length] assert_includes ['R', 'rsa'], key[:key_type] assert_equal user_name, key[:name] @@ -167,10 +167,10 @@ skip 'GnuPG v2.1 and above does not allow batch inspection of private keys' if IOStreams::Pgp.pgp_version.to_f >= 2.1 assert keys = IOStreams::Pgp.key_info(key: private_key) assert_equal 1, keys.size assert key = keys.first - assert_equal key[:date], Date.today + assert_equal Date.today, key[:date] assert_equal email, key[:email] assert_includes key[:key_id], generated_key_id assert_equal 1024, key[:key_length] assert_equal 'R', key[:key_type] assert_equal user_name, key[:name]