Sha256: d39b94cd4438a41a3ce9636946f54b4f8d515e9ce113783035001816fdb1d461
Contents?: true
Size: 760 Bytes
Versions: 4
Compression:
Stored size: 760 Bytes
Contents
require 'test_helper' class TypeOneTest < ActiveSupport::TestCase # test "the truth" do # assert true # end test "typeones fields should be records fields" do assert_equal "formatting", TypeOne.format_field end test "test typeones formatting should populate records fields" do typeone = TypeOne.new(:formatting => "csf", :raw => "itemType: book") assert_equal "csf", typeone.formatting end test "test typeones ability to act as citable" do CiteroEngine.acts_as_citable_class = "TypeOne" t = CiteroEngine.acts_as_citable_class.new(:formatting => "csf", :raw => "itemType: book") t.id = 1 assert_equal t.to_ris, "TY - BOOK\nER -\n\n" CiteroEngine.acts_as_citable_class = "CiteroEngine::Citation" end end
Version data entries
4 entries across 4 versions & 1 rubygems