Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 5th, 2012  |  syntax: None  |  size: 0.42 KB  |  hits: 9  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. node.minitest.gem_dependencies.each do |gem|
  2.   gem_package(gem) { action :nothing }.run_action(:install)
  3. end
  4.  
  5. minitest_unit_testcase "pod-services-http-port-test" do
  6.   block do
  7.     def test_port_80
  8.       assert_instance_of( Socket,
  9.                           Socket.tcp(node.ipaddress, 80),
  10.                           "socket could not be established to port localhost:80"
  11.                           )
  12.     end
  13.   end
  14.  
  15.   action :test
  16. end