Skip to content

Commit

Permalink
Test using repo checked into main suite
Browse files Browse the repository at this point in the history
  • Loading branch information
schneems committed Aug 27, 2018
1 parent 4ea40af commit e71314b
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
source 'https://rubygems.org'
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
GEM
remote: https://rubygems.org/
specs:

PLATFORMS
ruby

DEPENDENCIES

BUNDLED WITH
1.16.2
14 changes: 14 additions & 0 deletions test/hatchet/local_repo_test.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
require 'test_helper'

class AppTest < Minitest::Test
def test_repos_checked_into_git
app = Hatchet::App.new("test/different-folder-for-checked-in-repos/default_ruby")
app.in_directory do
assert_equal false, Dir.exist?(".git")
app.setup!
assert_equal true, Dir.exist?(".git")
end
ensure
app.teardown! if app
end
end

0 comments on commit e71314b

Please sign in to comment.