Sha256: 004407c8a5405aaf686f2d3e7dc45c8bc89b5e39b14dba1d4620bab6fbd0b78c
Contents?: true
Size: 558 Bytes
Versions: 2
Compression:
Stored size: 558 Bytes
Contents
require 'spec_helper' describe "The list helper" do it "should correctly detect additions to plural types and add them" do observables = org.mitre.cybox.core.ObservablesType.new expect {observables.add_observable(org.mitre.cybox.core.ObservableType.new)}.to_not raise_error observables.observables.length.should == 1 end it "should raise an error on incorrect additions" do observables = org.mitre.cybox.core.ObservablesType.new expect {observables.add_nonsense(org.mitre.cybox.core.ObservableType.new)}.to raise_error end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ruby_stix-0.2.0-java | spec/units/list_helper_spec.rb |
ruby_stix-0.0.2-java | spec/units/list_helper_spec.rb |