Sha256: 1711609820b348b88b75e663588b8a51ce78d6751336bbda6e68159ac0eb6b9d

Contents?: true

Size: 387 Bytes

Versions: 3

Compression:

Stored size: 387 Bytes

Contents

require 'spec_helper'
require 'ronin/os'

describe OS do
  it "should require a name" do
    os = OS.new
    os.should_not be_valid

    os.name = 'test'
    os.should be_valid
  end

  it "should provide methods for built-in OSes" do
    OS.linux.should_not be_nil
  end

  it "should provide methods for creating OSes with versions" do
    OS.linux('2.6.11').should be_valid
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ronin-1.0.0.pre3 spec/os_spec.rb
ronin-1.0.0.pre2 spec/os_spec.rb
ronin-1.0.0.pre1 spec/os_spec.rb