Sha256: 219daa8a5909e27ee8f961e04d801567e36b1ae9098accd4c5b486ac4d9bf979

Contents?: true

Size: 412 Bytes

Versions: 30

Compression:

Stored size: 412 Bytes

Contents

require 'test_helper'

class AllowFailureGitTest < Minitest::Test
  def test_allowed_failure
    Hatchet::GitApp.new("no_lockfile", allow_failure: true).deploy do |app|
      refute app.deployed?
      assert_match "Gemfile.lock required", app.output
    end
  end

  def test_failure_with_no_flag
    assert_raise(Hatchet::App::FailedDeploy) do
      Hatchet::GitApp.new("no_lockfile").deploy
    end
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
heroku_hatchet-5.0.3 test/hatchet/allow_failure_git_test.rb
heroku_hatchet-5.0.2 test/hatchet/allow_failure_git_test.rb
heroku_hatchet-5.0.1 test/hatchet/allow_failure_git_test.rb
heroku_hatchet-5.0.0 test/hatchet/allow_failure_git_test.rb
heroku_hatchet-4.1.2 test/hatchet/allow_failure_git_test.rb
heroku_hatchet-4.1.1 test/hatchet/allow_failure_git_test.rb
heroku_hatchet-4.1.0 test/hatchet/allow_failure_git_test.rb
heroku_hatchet-4.0.13 test/hatchet/allow_failure_git_test.rb
heroku_hatchet-4.0.12 test/hatchet/allow_failure_git_test.rb
heroku_hatchet-4.0.11 test/hatchet/allow_failure_git_test.rb
heroku_hatchet-4.0.10 test/hatchet/allow_failure_git_test.rb
heroku_hatchet-4.0.9 test/hatchet/allow_failure_git_test.rb
heroku_hatchet-4.0.8 test/hatchet/allow_failure_git_test.rb
heroku_hatchet-4.0.7 test/hatchet/allow_failure_git_test.rb
heroku_hatchet-4.0.6 test/hatchet/allow_failure_git_test.rb
heroku_hatchet-4.0.5 test/hatchet/allow_failure_git_test.rb
heroku_hatchet-4.0.4 test/hatchet/allow_failure_git_test.rb
heroku_hatchet-4.0.3 test/hatchet/allow_failure_git_test.rb
heroku_hatchet-4.0.2 test/hatchet/allow_failure_git_test.rb
heroku_hatchet-4.0.1 test/hatchet/allow_failure_git_test.rb