# Copyright: Copyright 2009 Topic Maps Lab, University of Leipzig. # License: Apache License, Version 2.0 require File.dirname(__FILE__) + '/../spec_helper' module RTM::Revision describe self do describe "#specify_event" do it "should give back a symbol if the type is known" do RTM::Revision.specify_event(Type::ASSOCIATION_ADDED).should == :creation end it "should give back nil if the type is not known" do RTM::Revision.specify_event(Type::UNKNOWN).should be_nil end end end # of describe self end class RTM::Revision::Type describe self do describe "Enumeration" do it "should let us call the constants in the enumeration" do RTM::Revision::Type::TYPE_SET.to_s.should == "TYPE_SET" end end end # of describe self end