Sha256: 9d9fa70608b0594c43cb4c65b2f7f620b77e9f80d0abc9968ee5a461f2d421e9

Contents?: true

Size: 420 Bytes

Versions: 2

Compression:

Stored size: 420 Bytes

Contents

require 'spec_helper'

describe "Campaign" do
  before do
    @campaign = org.mitre.stix.campaign.CampaignType.new
  end

  it "should be able to add attribution" do
    @campaign.add_attribution([{:threat_actor => org.mitre.stix.ta.ThreatActorType.new}])
  end

  it "should be able to add associated campaigns" do
    @campaign.add_associated_campaign({:campaign => org.mitre.stix.campaign.CampaignType.new})
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ruby_stix-0.2.0-java spec/units/campaign_spec.rb
ruby_stix-0.0.2-java spec/units/campaign_spec.rb