Sha256: 6a8913733b57c6402abd86a8aa351934f90c04bde0ca368ed493730d9eaa456d
Contents?: true
Size: 520 Bytes
Versions: 2
Compression:
Stored size: 520 Bytes
Contents
require 'spec_helper' describe "The ID helper" do it "should create IDs when none are assigned" do org.mitre.cybox.core.ObservableType.new.id.should_not be_nil end it "should not overwrite IDs when they are assigned" do id = javax.xml.namespace.QName.new("testing-an-id") org.mitre.cybox.core.ObservableType.new(:id => id).id.should == id end it "should not try to set IDs on objects that don't support it" do expect {org.mitre.cybox.core.ObservablesType.new }.to_not raise_error end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ruby_stix-0.2.0-java | spec/units/id_helper_spec.rb |
ruby_stix-0.0.2-java | spec/units/id_helper_spec.rb |