Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew2net committed Jul 2, 2020
1 parent 41c56e9 commit 27ccd22
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spec/relaton_bib/hash_converter_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@

it "parse validity time" do
r = RelatonBib::HashConverter.parse_validity_time({ begins: 1999 }, :begins)
expect(r.to_s).to eq "1999-01-01 00:00:00 +0100"
expect(r.to_s).to match /^1999-01-01/
r = RelatonBib::HashConverter.parse_validity_time({ ends: 1999 }, :ends)
expect(r.to_s).to eq "1999-12-31 00:00:00 +0100"
expect(r.to_s).to match /^1999-12-31/
r = RelatonBib::HashConverter.parse_validity_time({ begins: "1999-02" }, :begins)
expect(r.to_s).to eq "1999-02-01 00:00:00 +0100"
expect(r.to_s).to match /^1999-02-01/
r = RelatonBib::HashConverter.parse_validity_time({ ends: "1999-02" }, :ends)
expect(r.to_s).to eq "1999-02-28 00:00:00 +0100"
expect(r.to_s).to match /^1999-02-28/
end
end

0 comments on commit 27ccd22

Please sign in to comment.