Sha256: 8e4fc6cfe5eaeccd0d7f2ea945b1a59f6f719a1b30522639f4a7711bb3e66ecf

Contents?: true

Size: 772 Bytes

Versions: 2

Compression:

Stored size: 772 Bytes

Contents

require 'spec_helper'
require 'ronin/exploits/test_result'

describe Ronin::Exploits::TestResult do
  let(:message) { 'example message' }

  subject { described_class.new(message) }

  describe "#initialize" do
    it "must set #message" do
      expect(subject.message).to eq(message)
    end
  end

  describe "#to_s" do
    it "must return #message" do
      expect(subject.to_s).to eq(subject.message)
    end
  end

  it "must define a Vulnerable sub-class" do
    expect(described_class::Vulnerable).to be < described_class
  end

  it "must define a NotVulnerable sub-class" do
    expect(described_class::NotVulnerable).to be < described_class
  end

  it "must define a Unknown sub-class" do
    expect(described_class::Unknown).to be < described_class
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ronin-exploits-1.0.0.beta2 spec/test_result_spec.rb
ronin-exploits-1.0.0.beta1 spec/test_result_spec.rb