Sha256: a32b8279226254482e3d89eeea05de1a17c3ac2c73920dc641d1b10519884c68

Contents?: true

Size: 620 Bytes

Versions: 5

Compression:

Stored size: 620 Bytes

Contents

# Copyright: Copyright 2009 Topic Maps Lab, University of Leipzig.
# License:   Apache License, Version 2.0

require File.dirname(__FILE__) + '/../../../spec_helper'


module RTM::Navigation::Name
  describe self do
    before(:each) do
      @tm = get_used_tm_sys_tm
      @topic = @tm.get!("Person")
      @value = "Hans"
      @name = @topic.create_name(@value)
    end
    after(:each) do
      @tm.close
    end
    
    describe "#atomify" do
      it "should give back the value of the name" do
        @name.atomify.should be_a_kind_of String
        @name.atomify.should == @value 
      end
    end
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rtm-0.3.1 spec/rtm/navigation/name/atomify_spec.rb
rtm-0.3.0 spec/rtm/navigation/name/atomify_spec.rb
rtm-0.2.1 spec/rtm/navigation/name/atomify_spec.rb
rtm-0.2.0 spec/rtm/navigation/name/atomify_spec.rb
rtm-0.2 spec/rtm/navigation/name/atomify_spec.rb