jnicklas/turnip

View on GitHub
examples/steps/backtick_steps.rb

Summary

Maintainability
A
0 mins
Test Coverage
step "I run :cmd" do |cmd|
  step('I attack it') if cmd == 'killall monsters'
end

placeholder :cmd do
  match (/`([^`]*)`/) do |cmd|
    cmd
  end
end