tomcat_spec.rb 314 Bytes
Newer Older
Stefan Galinski's avatar
Stefan Galinski committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
require 'serverspec'

include Serverspec::Helper::Exec
include Serverspec::Helper::DetectOS

RSpec.configure do |c|
  c.before :all do
    c.path = '/sbin:/usr/sbin'
  end
end

describe "Tomcat available" do

  it "should be listening on port 8080" do
    expect(port(8080)).to be_listening.with('tcp6')
  end

end