Skip to content

Commit

Permalink
disable date validation for now. #326
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Aug 1, 2019
1 parent ac6f79b commit ac31590
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions spec/models/doi_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ac31590

Please sign in to comment.