Sha256: 2c5186d872fa83a69892d31f26e3a0cf91068f5627fbc0f91765a370cde7de50
Contents?: true
Size: 856 Bytes
Versions: 2
Compression:
Stored size: 856 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 instance data table "m.table" Then I receive an object that matches this Cucumber table | DAY | ACTIVITY | | Monday | mowing | | Tuesday | tutoring | | Wednesday | welcoming |
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mortadella-0.1.0 | features/basic_usage.feature |
mortadella-0.0.2 | features/basic_usage.feature |