From ac31590eaec47b52a9a37d1939080987824813a2 Mon Sep 17 00:00:00 2001 From: Martin Fenner Date: Thu, 1 Aug 2019 11:40:51 +0200 Subject: [PATCH] disable date validation for now. #326 --- spec/models/doi_spec.rb | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/spec/models/doi_spec.rb b/spec/models/doi_spec.rb index e44b688a1..d96f872f9 100644 --- a/spec/models/doi_spec.rb +++ b/spec/models/doi_spec.rb @@ -255,17 +255,17 @@ expect(doi.errors.details).to be_empty end - it "invalid" do - doi.dates = [{ "date" => "08/01/2019" }] - expect(doi.save).to be false - expect(doi.errors.details).to eq(:dates=>[{:error=>"Date 08/01/2019 is not a valid date in ISO8601 format."}]) - end + # it "invalid" do + # doi.dates = [{ "date" => "08/01/2019" }] + # expect(doi.save).to be false + # expect(doi.errors.details).to eq(:dates=>[{:error=>"Date 08/01/2019 is not a valid date in ISO8601 format."}]) + # end - it "invalid datetime" do - doi.dates = [{ "date" => "2019-08-01 20:28:15" }] - expect(doi.save).to be false - expect(doi.errors.details).to eq(:dates => [{:error=>"Date 2019-08-01 20:28:15 is not a valid date in ISO8601 format."}]) - end + # it "invalid datetime" do + # doi.dates = [{ "date" => "2019-08-01 20:28:15" }] + # expect(doi.save).to be false + # expect(doi.errors.details).to eq(:dates => [{:error=>"Date 2019-08-01 20:28:15 is not a valid date in ISO8601 format."}]) + # end end describe "metadata" do