Class: Wukong::SpecHelpers::CsvMatcher

Inherits:
DelimitedMatcher show all
Defined in:
lib/wukong/spec_helpers/unit_tests/unit_test_matchers.rb

Instance Attribute Summary

Attributes inherited from DelimitedMatcher

#delimiter

Attributes inherited from UnitTestMatcher

#actual_record, #driver, #expected, #expected_record, #mismatched_index, #reason

Instance Method Summary collapse

Methods inherited from DelimitedMatcher

#output, #parse_modifier

Methods inherited from UnitTestMatcher

#failure_message, #matches?, #negative_failure_message, #records

Constructor Details

#initialize(*expected) ⇒ CsvMatcher

Returns a new instance of CsvMatcher.



161
162
163
# File 'lib/wukong/spec_helpers/unit_tests/unit_test_matchers.rb', line 161

def initialize *expected
  super(",", *expected)
end

Instance Method Details

#delimited_typeObject



164
165
166
# File 'lib/wukong/spec_helpers/unit_tests/unit_test_matchers.rb', line 164

def delimited_type
  "CSV"
end