skoji / gepub

a generic EPUB library for Ruby : supports EPUB 3
Other
240 stars 42 forks source link

fix error of `Metadata#date=` #68

Closed takahashim closed 6 years ago

takahashim commented 6 years ago

When I add a new spec like below (without fix in lib/gepub/metadata.rb), I got an error:

Failures:

  1) GEPUB::Metadata Generate New OPF should handle date with `date=` method and Time object
     Failure/Error: expect(metadata.date.to_s).to eq('2012-02-27T20:00:00Z')

       expected: "2012-02-27T20:00:00Z"
            got: "2012-02-27 20:00:00 UTC"

       (compared using ==)
     # ./spec/metadata_spec.rb:160:in `block (3 levels) in <top (required)>'
coveralls commented 6 years ago

Coverage Status

Coverage increased (+0.01%) to 95.647% when pulling bc938308a7e11d5049355c36cd3e851f42c480f4 on takahashim:fix-add-date into 56be5a4fe7c9b83cffba0eac0ff5e6f16e289bcf on skoji:master.

coveralls commented 6 years ago

Coverage Status

Coverage increased (+0.01%) to 95.647% when pulling bc938308a7e11d5049355c36cd3e851f42c480f4 on takahashim:fix-add-date into 56be5a4fe7c9b83cffba0eac0ff5e6f16e289bcf on skoji:master.