Sha256: 8a7ed95fc785ca9d799cefc8321761820dabeb7af745d88a8ec9cacbb0404a79

Contents?: true

Size: 849 Bytes

Versions: 25

Compression:

Stored size: 849 Bytes

Contents

Given /^I will open "([^"]*)" branch as a new project$/ do |branch_name|
  path = parse_branch_path(branch_name)
  if path
    Redcar.gui.dialog_adapter.set(:open_directory, path)
    @svn_module = Redcar::Scm::Subversion::Manager.new
    @svn_module.load(path)
  end
end

When /^I switch to "([^"]*)" branch$/ do |branch_name|
  path = parse_branch_path(branch_name)
  Redcar.gui.dialog_adapter.set(:open_directory, path) if path
  svn_module.switch!(branch_name)
  svn_module.repository?(path).should == true
end

When /^I merge the "([^"]*)" branch$/ do |branch_name|
  path = parse_branch_path(branch_name)
  svn_module.merge!(branch_name)
end

Then /^I should see "([^"]*)" in "([^"]*)" branch$/ do |files, branch_name|
  path = parse_branch_path(branch_name)
  files.split(",").each {|f|
    File.exist?(path + "/#{f}").should == true
  }
end

Version data entries

25 entries across 25 versions & 2 rubygems

Version Path
redcar-dev-0.12.17dev plugins/scm_svn/features/step_definitions/branch_and_merge_steps.rb
redcar-dev-0.12.16dev-java plugins/scm_svn/features/step_definitions/branch_and_merge_steps.rb
redcar-dev-0.12.15dev-java plugins/scm_svn/features/step_definitions/branch_and_merge_steps.rb
redcar-dev-0.12.14dev-java plugins/scm_svn/features/step_definitions/branch_and_merge_steps.rb
redcar-dev-0.12.13dev-java plugins/scm_svn/features/step_definitions/branch_and_merge_steps.rb
redcar-dev-0.12.12dev-java plugins/scm_svn/features/step_definitions/branch_and_merge_steps.rb
redcar-dev-0.12.11dev-java plugins/scm_svn/features/step_definitions/branch_and_merge_steps.rb
redcar-dev-0.12.10dev-java plugins/scm_svn/features/step_definitions/branch_and_merge_steps.rb
redcar-dev-0.12.9dev-java plugins/scm_svn/features/step_definitions/branch_and_merge_steps.rb
redcar-dev-0.12.8dev-java plugins/scm_svn/features/step_definitions/branch_and_merge_steps.rb
redcar-dev-0.12.7dev-java plugins/scm_svn/features/step_definitions/branch_and_merge_steps.rb
redcar-dev-0.12.6dev-java plugins/scm_svn/features/step_definitions/branch_and_merge_steps.rb
redcar-dev-0.12.4dev-java plugins/scm_svn/features/step_definitions/branch_and_merge_steps.rb
redcar-dev-0.12.3dev-java plugins/scm_svn/features/step_definitions/branch_and_merge_steps.rb
redcar-dev-0.12.1dev-java plugins/scm_svn/features/step_definitions/branch_and_merge_steps.rb
redcar-dev-0.12.0dev-java plugins/scm_svn/features/step_definitions/branch_and_merge_steps.rb
redcar-0.11 plugins/scm_svn/features/step_definitions/branch_and_merge_steps.rb
redcar-0.11.0dev plugins/scm_svn/features/step_definitions/branch_and_merge_steps.rb
redcar-0.10 plugins/scm_svn/features/step_definitions/branch_and_merge_steps.rb
redcar-0.9.2 plugins/scm_svn/features/step_definitions/branch_and_merge_steps.rb