Sha256: 00558f879c0a63075a4331fa9529988b11b017ed295732c9bc1256f9109932c1
Contents?: true
Size: 601 Bytes
Versions: 7
Compression:
Stored size: 601 Bytes
Contents
require 'test_helper' class PermalinkTest < ActiveSupport::TestCase fixtures :referents, :referent_values test "new with values" do referent = referents(:nytimes) permalink = nil assert_difference('Permalink.count') { permalink = Permalink.new_with_values!(referent, "info:sid/sfxit.com:citation") } assert_equal(referent.id, permalink.referent_id) assert_equal("info:sid/sfxit.com:citation", permalink.orig_rfr_id) assert_not_nil(permalink.context_obj_serialized) assert_equal("The New York times", permalink.restore_context_object.referent.jtitle) end end
Version data entries
7 entries across 7 versions & 1 rubygems