Sha256: 30043c166e87080860c12c2c7db108fc6cd1994b1921855fb880d9f9abbf14da

Contents?: true

Size: 347 Bytes

Versions: 2

Compression:

Stored size: 347 Bytes

Contents

require 'test_helper'

class DoiTrapTest < ActionController::TestCase

  include DoiTrap

  test "should be a doi" do
    doi = '10.1016/0046-8177(95)90302-X'
    is_a_doi = is_a_doi?(doi)
    assert is_a_doi
  end

  test "should not be a doi" do
    doi = '0046-8177(95)90302-X'
    is_a_doi = is_a_doi?(doi)
    assert_not is_a_doi  
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
quick_search-core-0.0.1 test/controllers/concerns/doi_trap_test.rb
quick_search-core-0.0.1.test test/controllers/concerns/doi_trap_test.rb