Sha256: 6d5fc56a61741ad686ed1555370abe1d9cb76371aed79d0ac555beb6d0aa415b
Contents?: true
Size: 764 Bytes
Versions: 28
Compression:
Stored size: 764 Bytes
Contents
require 'test/unit' require File.join(File.dirname(__FILE__), '..', 'test_helper') module TaliaCore class SourceTransferObjectTest < Test::Unit::TestCase def test_with_uri s = SourceTransferObject.new("#{N::LOCAL}Homer_Simpson") assert_equal('Homer Simpson', s.titleized) assert_equal('Homer_Simpson', s.id) assert_equal("#{N::LOCAL}Homer_Simpson", s.to_s) assert_equal("#{N::LOCAL}Homer_Simpson", s.uri.to_s) assert s.source? end def test_with_string s = SourceTransferObject.new('Homer Simpson') assert_equal('Homer Simpson', s.titleized) assert_equal('Homer Simpson', s.to_s) assert_equal('Homer Simpson', s.id) assert_nil(s.uri) assert_not s.source? end end end
Version data entries
28 entries across 28 versions & 1 rubygems