Sha256: 1c83ab5ba7c205eb40e245e5978a5e1851a3ee02e9290f21f53eca389429254d

Contents?: true

Size: 630 Bytes

Versions: 2

Compression:

Stored size: 630 Bytes

Contents

Feature: Verifying emptiness

  As a Cucumber user
  I want a programmatic way to verify emptiness of a Mortadella instance
  So that I can verify the absence of data in comfortable ways.


  Scenario: an empty table
    Given I have a Mortadella instance:  "m = Mortadella.new headers: ['foo']"
    When I ask it whether it is empty:   "m.empty?"
    Then it responds with true


  Scenario: a non-empty table
    Given I have a Mortadella instance:  "m = Mortadella.new headers: ['foo']"
    And I add a data row:                "m << ['bar']"
    When I ask it whether it is empty:   "m.empty?"
    Then it responds with false

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mortadella-0.1.0 features/emptiness.feature
mortadella-0.0.2 features/emptiness.feature