Sha256: 4f8d18d695ec711b3486ddd316e36cb1f631fc20b21ac8f45d38b87f25338fec

Contents?: true

Size: 962 Bytes

Versions: 19

Compression:

Stored size: 962 Bytes

Contents

When /^I open the runnables tree$/ do
  Swt.sync_exec do
    Redcar::Runnables::ShowRunnables.new.run
  end
end

When /^I change the command to "([^"]*)"$/ do |name|
  current = File.read(runnable_config)
  File.open(runnable_config, 'w') do |f|
    f.print current.gsub("An app", name)
  end
end

When /^I go back to the "([^"]*)" window$/ do |title|
  Swt.sync_exec do
    Redcar.app.windows.detect { |w| w.title == title }.focus
  end
end

When /^I note the number of windows$/ do
  @windows = Redcar.app.windows.size
end

Then /^I should see (\d+) more windows?$/ do |window_count|
  Redcar.app.windows.size.should == (@windows + window_count.to_i)
end

When /^I append parameters to the "([^"]*)" node in the tree$/ do |node_text|
  mirror     = Redcar.app.focussed_window.treebook.focussed_tree.tree_mirror
  node       = find_node_with_text(mirror.top, node_text)
  Swt.sync_exec do
    Redcar::Runnables::AppendParamsAndRunCommand.new(node).run
  end
end

Version data entries

19 entries across 19 versions & 2 rubygems

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