Class ExpectedResultSet
In: lib/expected_result_set.rb
Parent: Object

A class, as the name suggests, to setup and expected result set.

Typical usage

   expected = ExpectedResultSet.new
   expected.columns = ['first_column_name', 'second_column_name']
   expected.rows <<   [ 'first item',                  1 ]
   expected.rows <<   [ 'second item',                 2 ]

Methods

columns=   new   row_hash   row_hashes  

Attributes

columns  [R] 
rows  [R] 

Public Class methods

Public Instance methods

columns should be given an array of strings.

[Validate]