Class: RSpec::Matchers::ExcelMatcher

Inherits:
Object
  • Object
show all
Defined in:
lib/excel_templating/rspec_excel_matcher.rb

Overview

Specific Matcher class helper for comparing two excel documents.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeExcelMatcher

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_rooObject

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

#errorsObject

Returns the value of attribute errors.



46
47
48
# File 'lib/excel_templating/rspec_excel_matcher.rb', line 46

def errors
  @errors
end

#expected_rooObject

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

Returns:

  • (Boolean)


42
43
44
# File 'lib/excel_templating/rspec_excel_matcher.rb', line 42

def match?
  sheet_count_equal? && all_sheets_equal?
end