Sha256: ce24f8b023ecef53bd11c693951253a95129de080602650cb707e56b5eb81749

Contents?: true

Size: 640 Bytes

Versions: 4

Compression:

Stored size: 640 Bytes

Contents

require 'test_helper'

class RecordTest < ActiveSupport::TestCase
  test "should be able to create a new Record" do
    rec = Record.new(:data => "itemType: book", :format => "csf")
    assert rec.to_ris.eql? "TY  - BOOK\nER  -\n\n"
    assert rec.to_bibtex.eql? "@book{????\n}"
    assert rec.to_openurl.eql? "rft.ulr_ver=Z39.88-2004&rft.ctx_ver=Z39.88-2004&rft.rfr_id=info:sid/libraries.nyu.edu:citero&rft_val_fmlt=info:ofi/fmt:kev:mtx:book&rft.genre=book"
    assert rec.to_easybib.eql? "{\"source\":\"book\",\"book\":{\"title\":null},\"pubtype\":{\"main\":\"pubnonperiodical\"},\"pubnonperiodical\":{},\"contributors\":[{}]}"
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
acts_as_citable-1.2.0 test/dummy/test/unit/record_test.rb
acts_as_citable-1.1.4 test/dummy/test/unit/record_test.rb
acts_as_citable-1.1.3 test/dummy/test/unit/record_test.rb
acts_as_citable-1.0.1 test/dummy/test/unit/record_test.rb