test/test_method.rb in cim-0.2.7 vs test/test_method.rb in cim-0.3.0
- old
+ new
@@ -3,26 +3,26 @@
require "test/unit"
require "cim"
class MethodTest < Test::Unit::TestCase
def test_init
- m = Cim::Method.new :real32, "Foo", Cim::Meta::Qualifier.new(:description, :string, "This is a foo method", :class)
+ m = CIM::Method.new :real32, "Foo", CIM::QualifierDeclaration.new(:description, :string, "This is a foo method", :class)
assert m
assert_equal "Foo", m.name
assert m.qualifiers.size > 0
# assert m.qualifiers.include?( :description, :string )
# assert_equal "This is a foo method", m.description
assert_equal false, m.to_s.empty?
end
def test_nodesc
- m = Cim::Method.new :bool, "Foo"
+ m = CIM::Method.new :bool, "Foo"
assert m
assert_equal "Foo", m.name
assert_equal m.type, :bool
# assert_equal nil, m.description
end
def test_raise
assert_raise TypeError do
- m = Cim::Method.new :foo, "Foo"
+ m = CIM::Method.new :foo, "Foo"
end
end
end