Sha256: 5800dd469c3c10de40d95ab0afb5546cf8faef7144ad6d237ca12415f224987d

Contents?: true

Size: 610 Bytes

Versions: 1

Compression:

Stored size: 610 Bytes

Contents

require 'ronin/model/targets_os'

require 'spec_helper'
require 'model/models/targets_os_model'

describe Model::TargetsOS do
  it "should define an os relation" do
    TargetsOSModel.relationships.has_key?('os')
  end

  it "should provide access to the targeted os" do
    model = TargetsOSModel.new(:os => OS.linux('2.6.29'))
    model.os.should == OS.linux('2.6.29')
  end

  it "should allow the os to be set via the getter method" do
    model = TargetsOSModel.new
    model.os :name => 'Linux', :version => '2.6.29'

    model.os.name.should == 'Linux'
    model.os.version.should == '2.6.29'
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ronin-exploits-0.2.1 spec/model/targets_os_spec.rb