Sha256: 2f4442b9b7d6915de9fe1fe2a0581a7eac67e2d86aba04f4f0267eb29bfdebdf

Contents?: true

Size: 920 Bytes

Versions: 19

Compression:

Stored size: 920 Bytes

Contents

Given /^I will open "([^"]*)" branch as a new project$/ do |branch_name|
  Swt.sync_exec do
    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
end

When /^I switch to "([^"]*)" branch$/ do |branch_name|
  Swt.sync_exec do
    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
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

19 entries across 19 versions & 2 rubygems

Version Path
redcar-0.13 plugins/scm_svn/features/step_definitions/branch_and_merge_steps.rb
redcar-dev-0.13.5dev plugins/scm_svn/features/step_definitions/branch_and_merge_steps.rb
redcar-dev-0.13.4dev plugins/scm_svn/features/step_definitions/branch_and_merge_steps.rb
redcar-dev-0.13.3dev plugins/scm_svn/features/step_definitions/branch_and_merge_steps.rb
redcar-dev-0.13.2dev plugins/scm_svn/features/step_definitions/branch_and_merge_steps.rb
redcar-dev-0.13.1dev plugins/scm_svn/features/step_definitions/branch_and_merge_steps.rb
redcar-0.12.1 plugins/scm_svn/features/step_definitions/branch_and_merge_steps.rb
redcar-dev-0.13.0dev plugins/scm_svn/features/step_definitions/branch_and_merge_steps.rb
redcar-0.12 plugins/scm_svn/features/step_definitions/branch_and_merge_steps.rb
redcar-dev-0.12.27dev plugins/scm_svn/features/step_definitions/branch_and_merge_steps.rb
redcar-dev-0.12.26dev plugins/scm_svn/features/step_definitions/branch_and_merge_steps.rb
redcar-dev-0.12.25dev plugins/scm_svn/features/step_definitions/branch_and_merge_steps.rb
redcar-dev-0.12.24dev plugins/scm_svn/features/step_definitions/branch_and_merge_steps.rb
redcar-dev-0.12.23dev plugins/scm_svn/features/step_definitions/branch_and_merge_steps.rb
redcar-dev-0.12.22dev plugins/scm_svn/features/step_definitions/branch_and_merge_steps.rb
redcar-dev-0.12.21dev plugins/scm_svn/features/step_definitions/branch_and_merge_steps.rb
redcar-dev-0.12.20dev plugins/scm_svn/features/step_definitions/branch_and_merge_steps.rb
redcar-dev-0.12.19dev plugins/scm_svn/features/step_definitions/branch_and_merge_steps.rb
redcar-dev-0.12.18dev plugins/scm_svn/features/step_definitions/branch_and_merge_steps.rb