Class: RSpec::Matchers::ExcelMatcher
- Inherits:
-
Object
- Object
- RSpec::Matchers::ExcelMatcher
- Defined in:
- lib/excel_templating/rspec_excel_matcher.rb
Overview
Specific Matcher class helper for comparing two excel documents.
Instance Attribute Summary collapse
-
#actual_roo ⇒ Object
Returns the value of attribute actual_roo.
-
#errors ⇒ Object
Returns the value of attribute errors.
-
#expected_roo ⇒ Object
Returns the value of attribute expected_roo.
Instance Method Summary collapse
-
#initialize ⇒ ExcelMatcher
constructor
A new instance of ExcelMatcher.
- #match? ⇒ Boolean
Constructor Details
#initialize ⇒ ExcelMatcher
Returns a new instance of ExcelMatcher.
38 39 40 |
# File 'lib/excel_templating/rspec_excel_matcher.rb', line 38 def initialize @errors = [] end |
Instance Attribute Details
#actual_roo ⇒ Object
Returns the value of attribute actual_roo.
46 47 48 |
# File 'lib/excel_templating/rspec_excel_matcher.rb', line 46 def actual_roo @actual_roo end |
#errors ⇒ Object
Returns the value of attribute errors.
46 47 48 |
# File 'lib/excel_templating/rspec_excel_matcher.rb', line 46 def errors @errors end |
#expected_roo ⇒ Object
Returns the value of attribute expected_roo.
46 47 48 |
# File 'lib/excel_templating/rspec_excel_matcher.rb', line 46 def expected_roo @expected_roo end |
Instance Method Details
#match? ⇒ Boolean
42 43 44 |
# File 'lib/excel_templating/rspec_excel_matcher.rb', line 42 def match? sheet_count_equal? && all_sheets_equal? end |