Sha256: fdb769435ae91b594942db4317e8565636a187d57ba4ef64a3313388a7e81199
Contents?: true
Size: 951 Bytes
Versions: 1
Compression:
Stored size: 951 Bytes
Contents
Feature: Creating mock data tables As a Cucumber user I want to programmatically create mock data tables from application data So that I can use Cucumber's built-in table diffing functionality to verify my application behavior ergonomically. Scenario: Creating a simple data table Given I create a Mortadella instance: "m = Mortadella.new headers: ['DAY', 'ACTIVITY']" And I add a data row: "m << ['Monday', 'mowing']" And I add another data row: "m << ['Tuesday', 'tutoring']" And I add another data row: "m << ['Wednesday', 'welcoming']" When I request the data table from my Mortadella instance "m.table" Then I receive an object that matches this Cucumber table | DAY | ACTIVITY | | Monday | mowing | | Tuesday | tutoring | | Wednesday | welcoming |
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mortadella-0.0.1 | features/basic_usage.feature |