Sha256: 91acd59d13fd4964691d3d25f6abbc646ef29c296d51237ba39ca49740d124ab
Contents?: true
Size: 614 Bytes
Versions: 38
Compression:
Stored size: 614 Bytes
Contents
require 'test_helper' class SmokeTestTest < MiniTest::Unit::TestCase def test_call_proc_type_smoke_tests host_name_in_proc = nil EbDeployer::SmokeTest.new(lambda {|v| host_name_in_proc = v }).run("foo") assert_equal 'foo', host_name_in_proc end def test_eval_string_type_smoke_test $host_name_in_proc = nil EbDeployer::SmokeTest.new("$host_name_in_proc=host_name").run("foo") assert_equal 'foo', $host_name_in_proc end def test_should_raise_if_test_body_raise assert_raises(RuntimeError) do EbDeployer::SmokeTest.new("raise host_name").run("foo") end end end
Version data entries
38 entries across 38 versions & 1 rubygems