Sha256: cc4b8e302b7f6549c514ffd462bf872609aa313dc1324656e93fbffd8165aab1

Contents?: true

Size: 393 Bytes

Versions: 1

Compression:

Stored size: 393 Bytes

Contents

require 'ronin/os'

require 'helpers/database'

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

1 entries across 1 versions & 1 rubygems

Version Path
ronin-0.3.0 spec/os_spec.rb