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

Version Path
eb_deployer-0.6.0.beta2 test/smoke_test_test.rb
eb_deployer-0.5.2 test/smoke_test_test.rb
eb_deployer-0.6.0.beta1 test/smoke_test_test.rb
eb_deployer-0.5.1.beta3 test/smoke_test_test.rb
eb_deployer-0.5.1.beta2 test/smoke_test_test.rb
eb_deployer-0.5.1.beta1 test/smoke_test_test.rb
eb_deployer-0.5.0 test/smoke_test_test.rb
eb_deployer-0.4.13 test/smoke_test_test.rb
eb_deployer-0.4.12 test/smoke_test_test.rb
eb_deployer-0.4.11 test/smoke_test_test.rb
eb_deployer-0.4.10 test/smoke_test_test.rb
eb_deployer-0.4.9 test/smoke_test_test.rb
eb_deployer-0.4.8 test/smoke_test_test.rb
eb_deployer-0.4.7.beta1 test/smoke_test_test.rb
eb_deployer-0.4.6 test/smoke_test_test.rb
eb_deployer-0.4.5 test/smoke_test_test.rb
eb_deployer-0.4.4 test/smoke_test_test.rb
eb_deployer-0.4.4.beta7 test/smoke_test_test.rb
eb_deployer-0.4.4.beta6 test/smoke_test_test.rb
eb_deployer-0.4.4.beta5 test/smoke_test_test.rb