Skip to content
This repository has been archived by the owner on Jul 6, 2021. It is now read-only.

Commit

Permalink
Initial failing feature - may have change the tcl function later
Browse files Browse the repository at this point in the history
  • Loading branch information
jowers authored and mattwynne committed Feb 18, 2015
1 parent 7f55502 commit dae3f8d
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions features/data_tables.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
Feature: DataTables

Scenario: Match a step with a DataTable
Given a file named "features/test.feature" with:
"""
Feature:
Scenario:
Given passing with a DataTable:
| first_column | second_column |
"""
And a file named "features/support/env.rb" with:
"""
require 'cucumber/tcl'
"""
And a file named "features/step_defintions/steps.tcl" with:
"""
Given {^passing with a DataTable:$} {content} {
puts "raw data = [get_raw $content]"
}
"""
When I run `cucumber`
Then it should pass with:
"""
raw data = first_column second_column
"""

0 comments on commit dae3f8d

Please sign in to comment.