Class: RSpec::XlsxMatchers::EmptyRow
- Defined in:
- lib/rspec/xlsx_matchers/empty_row.rb
Overview
have_excel_empty_row
Instance Attribute Summary collapse
-
#row_index ⇒ Object
readonly
Returns the value of attribute row_index.
Attributes inherited from BaseSheet
Instance Method Summary collapse
- #failure_message ⇒ Object
- #failure_message_when_negated ⇒ Object
-
#initialize(row_index) ⇒ EmptyRow
constructor
A new instance of EmptyRow.
Methods inherited from BaseSheet
Methods included from Utils
Constructor Details
#initialize(row_index) ⇒ EmptyRow
Returns a new instance of EmptyRow.
9 10 11 12 |
# File 'lib/rspec/xlsx_matchers/empty_row.rb', line 9 def initialize(row_index) super() @row_index = row_index end |
Instance Attribute Details
#row_index ⇒ Object (readonly)
Returns the value of attribute row_index.
7 8 9 |
# File 'lib/rspec/xlsx_matchers/empty_row.rb', line 7 def row_index @row_index end |
Instance Method Details
#failure_message ⇒ Object
20 21 22 23 24 |
# File 'lib/rspec/xlsx_matchers/empty_row.rb', line 20 def return if sheet.nil? "Row at index '#{row_index}' was expected to be empty, but was not empty." end |
#failure_message_when_negated ⇒ Object
14 15 16 17 18 |
# File 'lib/rspec/xlsx_matchers/empty_row.rb', line 14 def return if sheet.nil? "Row at index '#{row_index}' was expected to NOT be empty, but was empty." end |