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

- old
+ new

@@ -1,8 +1,20 @@ require 'pathname' module FileWorld + def executable + 'hoog' + end + + def hook_path + File.expand_path(File.join(File.dirname(__FILE__), + "..", + "..", + "spec", + "fixtures")) + end + def bin_path File.expand_path(File.join(File.dirname(__FILE__), "..", "..")) end @@ -22,10 +34,18 @@ "hooks", type) path end + def treasury_path + File.join(hook_path, '.hoog', 'treasury') + end + + def hook_git_repo_path + File.join(hook_path, 'neverland.git') + end + def hook_config_file_path git_project_path.join('hoogfile.yml') end def write_file(path, file_content) @@ -39,9 +59,9 @@ 'spec', 'hooks', "#{name}.rb")) write_file(spec_name, file_content) end - + end World(FileWorld)