spec/port_spec.rb in ruby-nmap-0.8.0 vs spec/port_spec.rb in ruby-nmap-0.9.0
- old
+ new
@@ -1,6 +1,8 @@
require 'spec_helper'
+require 'scripts_examples'
+
require 'nmap/port'
describe Port do
subject { @xml.hosts.first.ports.first }
@@ -35,9 +37,10 @@
expect(subject).to be_kind_of(Service)
end
end
include_examples "#scripts"
+ include_examples "#script_data"
describe "#inspect" do
it "should include the number" do
expect(subject.inspect).to include(subject.number.to_s)
end