Sha256: b6fecbd737affa134abed29b1eb3d55ae354adf60fff26c9f57dbcc40a8b4a92

Contents?: true

Size: 1.07 KB

Versions: 19

Compression:

Stored size: 1.07 KB

Contents

When /I open a directory/ do
  Swt.sync_exec do
    Redcar::Project::DirectoryOpenCommand.new.run
  end
end

When /I close the directory/ do
  Swt.sync_exec do
    Redcar::Project::Manager.focussed_project.close
  end
end

When /^I refresh the directory tree$/ do
  Swt.sync_exec do
    Redcar::Project::Manager.focussed_project.refresh
  end
end

When /^I move the myproject fixture away$/ do
  FileUtils.mv("plugins/project/spec/fixtures/myproject",
               "plugins/project/spec/fixtures/myproject.bak")
  @put_myproject_fixture_back = true
end

When /^I open a "([^"]*)" as a subproject of the current directory$/ do |arg1|
  Swt.sync_exec do
    path = Redcar::Project::Manager.focussed_project.path
    Redcar::Project::Manager.open_subproject(path,path + arg1)
  end
end

Then /^"([^"]*)" in the project configuration files$/ do |arg1|
  project = Redcar::Project::Manager.focussed_project
  project.config_files(arg1).each do |file|
    File.exist?(file).should == true
  end
end

When /^"([^"]*)" goes missing$/ do |arg1|
  FileUtils.rm(arg1)
  File.exists?(arg1).should == false
end

Version data entries

19 entries across 19 versions & 2 rubygems

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