Skip to content

Commit

Permalink
protonym_spec update
Browse files Browse the repository at this point in the history
  • Loading branch information
proceps committed Feb 10, 2015
1 parent 55d1768 commit 7d63f20
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
class TaxonNameRelationship::Iczn::PotentiallyValidating::ReplacementName < TaxonNameRelationship::Iczn::PotentiallyValidating

NOMEN_URI='270'
NOMEN_URI='http://purl.obolibrary.org/obo/NOMEN_0000270'

def self.assignable
true
Expand Down
1 change: 1 addition & 0 deletions spec/models/taxon_name_classification_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
uri = klass.nomen_uri
expect(uri.empty?).to be_falsey, "NOMEN_URI for #{klass.name} is empty!"
expect(nomen_uris.include?(uri)).to be(false), "#{uri} from #{klass.name} is duplicated!"
expect(uri).to match(/http:\/\/purl.obolibrary.org\/obo\/NOMEN/), "#{uri} from #{klass.name} is invalid!"
nomen_uris.push uri
end
end
Expand Down
1 change: 1 addition & 0 deletions spec/models/taxon_name_relationship_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
uri = klass.nomen_uri
expect(uri.empty?).to be_falsey, "NOMEN_URI for #{klass.name} is empty!"
expect(nomen_uris.include?(uri)).to be(false), "#{uri} from #{klass.name} is duplicated!"
expect(uri).to match(/http:\/\/purl.obolibrary.org\/obo\/NOMEN/), "#{uri} from #{klass.name} is invalid!"
nomen_uris.push uri
end
end
Expand Down

0 comments on commit 7d63f20

Please sign in to comment.