Sha256: c43afb1d4d80b0693a7acd43b22f0c3c5f07bf755ead93a9f28f9e5aa53e824a
Contents?: true
Size: 965 Bytes
Versions: 2
Compression:
Stored size: 965 Bytes
Contents
module CommonHelpers def in_tmp_folder(&block) FileUtils.chdir(@tmp_root, &block) end def in_project_folder(&block) project_folder = @active_project_folder || @tmp_root FileUtils.chdir(project_folder, &block) end def in_home_folder(&block) FileUtils.chdir(@home_path, &block) end def force_local_lib_override(project_name = @project_name) rakefile = File.read(File.join(project_name, 'Rakefile')) File.open(File.join(project_name, 'Rakefile'), "w+") do |f| f << "$:.unshift('#{@lib_path}')\n" f << rakefile end end def setup_active_project_folder project_name @active_project_folder = File.join(@tmp_root, project_name) @project_name = project_name end end World(CommonHelpers) # Common steps Given /^I have logged in$/ do @fc.login 'gemtest', 'gemtest' @fc.instance_eval("@token").should_not be_nil end Given /^I have not logged in$/ do @fc.instance_eval("@token").should be_nil end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fisheye-crucible-0.0.2 | features/support/common.rb |
fisheye-crucible-0.0.1 | features/support/common.rb |