Class: Fit::RowFixture
- Inherits:
-
ColumnFixture
- Object
- Fixture
- ColumnFixture
- Fit::RowFixture
- Defined in:
- lib/fit/row_fixture.rb
Direct Known Subclasses
Eg::Book::DiscountGroupOrderedList, Eg::ColumnIndex, Eg::EchoArgsFixture, Eg::Music::Display, Eg::Page
Constant Summary
Constants inherited from Fixture
Fixture::GRAY, Fixture::GREEN, Fixture::RED, Fixture::YELLOW
Instance Attribute Summary collapse
-
#missing ⇒ Object
Returns the value of attribute missing.
-
#results ⇒ Object
Returns the value of attribute results.
-
#surplus ⇒ Object
Returns the value of attribute surplus.
Attributes inherited from Fixture
#args, #counts, #listener, #summary
Instance Method Summary collapse
- #do_rows(rows) ⇒ Object
-
#initialize ⇒ RowFixture
constructor
A new instance of RowFixture.
-
#query ⇒ Object
Gets rows to be compared.
Methods inherited from ColumnFixture
#check, #do_cell, #do_row, #execute, #reset
Methods inherited from Fixture
camel, #check, #do_cell, #do_cells, #do_row, #do_table, #do_tables, #error, escape, #exception, #find_class, #fixture_name, #get_args_for_table, #get_linked_fixture_with_args, gray, #ignore, #info, #interpret_following_tables, #interpret_tables, label, metadata, #parse, #right, #total_errors, #totals, #wrong
Constructor Details
#initialize ⇒ RowFixture
Returns a new instance of RowFixture.
15 16 17 18 19 |
# File 'lib/fit/row_fixture.rb', line 15 def initialize super @missing = [] @surplus = [] end |
Instance Attribute Details
#missing ⇒ Object
Returns the value of attribute missing.
13 14 15 |
# File 'lib/fit/row_fixture.rb', line 13 def missing @missing end |
#results ⇒ Object
Returns the value of attribute results.
12 13 14 |
# File 'lib/fit/row_fixture.rb', line 12 def results @results end |
#surplus ⇒ Object
Returns the value of attribute surplus.
13 14 15 |
# File 'lib/fit/row_fixture.rb', line 13 def surplus @surplus end |
Instance Method Details
#do_rows(rows) ⇒ Object
21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/fit/row_fixture.rb', line 21 def do_rows rows begin bind rows.parts @results = query match list(rows.more), @results, 0 last = rows.last last.more = build_rows @surplus mark_parse last.more, 'surplus' mark_list @missing, 'missing' rescue Exception => e exception rows.leaf, e end end |
#query ⇒ Object
Gets rows to be compared
36 |
# File 'lib/fit/row_fixture.rb', line 36 def query; end |