Permalink
Browse files

Add example with backticks

  • Loading branch information...
1 parent 4f791f3 commit 3fbd15ca9bf4eef5378db3030e8d51c0a0bab2e1 @listrophy listrophy committed with listrophy Feb 19, 2012
Showing with 9 additions and 0 deletions.
  1. +4 −0 examples/backtick_steps.rb
  2. +5 −0 examples/with_backticks.feature
@@ -0,0 +1,4 @@
+step "I run `:cmd`" do |cmd|
+ step('I attack it') if cmd == 'killall monsters'
+end
+
@@ -0,0 +1,5 @@
+Feature: A feature with backticks
+ Scenario: This is a feature with backticks
+ Given there is a monster
+ When I run `killall monsters`
+ Then it should die

0 comments on commit 3fbd15c

Please sign in to comment.