Module: Mortadella

Defined in:
lib/mortadella.rb,
lib/mortadella/vertical.rb,
lib/mortadella/horizontal.rb

Overview

Mortadella makes it easy to programmatically build data tables for Cucumber testing.

This module provides two main classes:

  • Horizontal: Build horizontal tables with column headers and data rows

  • Vertical: Build vertical tables with key-value pairs

Examples:

Using Horizontal tables

table = Mortadella::Horizontal.new(headers: ['NAME', 'AGE'])
table << ['Alice', '30']
table << ['Bob', '25']

Using Vertical tables

table = Mortadella::Vertical.new
table['NAME'] = 'Alice'
table['AGE'] = '30'

Defined Under Namespace

Classes: Horizontal, Vertical