spec/exploits/remote_tcp_spec.rb in ronin-exploits-0.2.0 vs spec/exploits/remote_tcp_spec.rb in ronin-exploits-0.2.1
- old
+ new
@@ -2,23 +2,27 @@
require 'spec_helper'
describe Exploits::RemoteTCP do
before(:all) do
- @exp = Exploits::RemoteTCP.new(
+ @exploit = Exploits::RemoteTCP.new(
:default_port => 22,
:host => '127.0.0.1'
)
end
it "should include the TCP Session module" do
Exploits::RemoteTCP.include?(Sessions::TCP).should == true
end
+ it "should initialize all parameters by default" do
+ @exploit.params.should_not be_empty
+ end
+
it "should default the port to the default_port before deploying" do
- @exp.build!
+ @exploit.build!
- @exp.deploy! do |exp|
+ @exploit.deploy! do |exp|
exp.port.should == 22
end
end
end