Browse files

Add example cuke feature

  • Loading branch information...
1 parent 8340b84 commit 31d4a003c992c806f6487f7525a881b6b15ab6f9 @moredip committed Nov 20, 2010
Showing with 16 additions and 0 deletions.
  1. +1 −0 .gitignore
  2. +1 −0 example/cucumber.yml
  3. +4 −0 example/step_definitions/steps.rb
  4. +10 −0 example/the.feature
View
1 .gitignore
@@ -1,3 +1,4 @@
pkg/*
*.gem
.bundle
+example/cuke.html
View
1 example/cucumber.yml
@@ -0,0 +1 @@
+default: --format 'Timestamped::HtmlFormatter' --out cuke.html --format 'Timestamped::PrettyFormatter' the.feature
View
4 example/step_definitions/steps.rb
@@ -0,0 +1,4 @@
+Given /^I wait (\d+\.?\d*) seconds$/ do |seconds|
+ seconds = seconds.to_f
+ sleep(seconds)
+end
View
10 example/the.feature
@@ -0,0 +1,10 @@
+Feature: demonstration
+
+Scenario: The First
+ Given I wait 5 seconds
+
+Scenario: The Second
+ Given I wait 0.7 seconds
+ Given I wait 3 seconds
+
+Scenario: The Third

0 comments on commit 31d4a00

Please sign in to comment.