Sha256: 510f42cd1832afc8bc5e61628cf4646efcd3599e0776a27822d1e9b620d804b7

Contents?: true

Size: 442 Bytes

Versions: 8

Compression:

Stored size: 442 Bytes

Contents

require 'test_helper'

class EditRepoTest < Test::Unit::TestCase
  def test_can_deploy_git_app
    Hatchet::GitApp.new("rails3_mri_193").in_directory do |app|
      msg = `touch foo`
      assert $?.success?, msg

      msg = `git add .; git commit -m foo`
      assert $?.success?, msg

      assert_match "foo", `ls`
    end

    Hatchet::GitApp.new("rails3_mri_193").in_directory do |app|
      refute_match "foo", `ls`
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
heroku_hatchet-1.3.7 test/hatchet/edit_repo_test.rb
heroku_hatchet-1.3.6 test/hatchet/edit_repo_test.rb
heroku_hatchet-1.3.5 test/hatchet/edit_repo_test.rb
heroku_hatchet-1.3.4 test/hatchet/edit_repo_test.rb
heroku_hatchet-1.3.3 test/hatchet/edit_repo_test.rb
heroku_hatchet-1.3.2 test/hatchet/edit_repo_test.rb
heroku_hatchet-1.3.1 test/hatchet/edit_repo_test.rb
heroku_hatchet-1.3.0 test/hatchet/edit_repo_test.rb