Sha256: b897a8fb708879676d1bb788c1c7098ad194e9800c72b3a6f9bf6c53498d2a1a
Contents?: true
Size: 845 Bytes
Versions: 2
Compression:
Stored size: 845 Bytes
Contents
require 'spec_helper' require 'ronin/exploits/params/host' require 'ronin/exploits/exploit' describe Ronin::Exploits::Params::Host do module TestHostParam class TestExploit < Ronin::Exploits::Exploit include Ronin::Exploits::Params::Host end end describe ".included" do subject { TestHostParam::TestExploit } it "must add a required 'host' param to the exploit class" do expect(subject.params[:host]).to_not be_nil expect(subject.params[:host].required?).to be(true) expect(subject.params[:host].desc).to eq("Remote host to connect to") end end let(:host) { 'example.com' } subject do TestHostParam::TestExploit.new( params: {host: host} ) end describe "#host" do it "must return the host param value" do expect(subject.host).to eq(host) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ronin-exploits-1.0.0.beta2 | spec/params/host_spec.rb |
ronin-exploits-1.0.0.beta1 | spec/params/host_spec.rb |