features/support/env.rb in captain_hoog-1.1.1 vs features/support/env.rb in captain_hoog-2.0.0

- old
+ new

@@ -1,19 +1,19 @@ require 'cucumber' require 'aruba/cucumber' require 'rspec/expectations' - SPEC_PATH = File.expand_path(File.join(File.dirname(__FILE__), "..", "..", "spec")) FIXTURES_PATH = File.join(SPEC_PATH, "fixtures") HOOK_SPEC_PATH = File.join(SPEC_PATH, "hooks") - + Before do + @aruba_timeout_seconds = 5 $git_fixture_dir_exists ||= false @dirs = [FIXTURES_PATH] ["no_git", "with_git"].each do |dir| git_path = File.join(FIXTURES_PATH, dir) FileUtils.mkdir_p(git_path) @@ -28,10 +28,11 @@ end end After do + FileUtils.rm_rf(File.join(FIXTURES_PATH, '.hoog')) FileUtils.rm_rf(File.join(FIXTURES_PATH, 'with_git', 'hoogfile.yml')) %w{ pre-commit pre-push pre-rebase post-update @@ -42,8 +43,8 @@ FileUtils.rm_rf(File.join(FIXTURES_PATH, "with_git", ".git", "hooks", hook_type)) - FileUtils.rm_rf(HOOK_SPEC_PATH) + FileUtils.rm_rf(HOOK_SPEC_PATH) end end