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

Commit

Permalink
Adding in the supporting code
Browse files Browse the repository at this point in the history
  • Loading branch information
jowers authored and mattwynne committed Feb 18, 2015
1 parent dae3f8d commit ccfeb92
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion features/data_tables.feature
@@ -1,5 +1,6 @@
Feature: DataTables

@wip
Scenario: Match a step with a DataTable
Given a file named "features/test.feature" with:
"""
Expand All @@ -21,5 +22,5 @@ Feature: DataTables
When I run `cucumber`
Then it should pass with:
"""
raw data = first_column second_column
raw data = {"first_column" "second_column"}
"""
4 changes: 4 additions & 0 deletions lib/cucumber/tcl/step_definitions.rb
Expand Up @@ -30,6 +30,10 @@ def doc_string(arg)
@arguments << arg.content
end

def data_table(arg)
@arguments << arg.raw
end

def to_a
@arguments
end
Expand Down

0 comments on commit ccfeb92

Please sign in to comment.