Publidata / opening_hours_converter

OpenStreetMap Opening Hours to Date & Date to Opening Hours
https://rubygems.org/gems/opening_hours_converter
GNU Affero General Public License v3.0
12 stars 3 forks source link

Feature/refactor parse tests #32

Closed berkes closed 5 years ago

berkes commented 5 years ago
##
# When testing, please use the test helpers `parsed_rebuilt` and `test_string`.
#
# `test_string` merely returns the description of the test.
# `parsed_rebuilt` parses that description and then rebuilds a string from
# the parsed result.
# Most often those should match:
#   expect(parsed_rebuilt).to eql(test_string)
# Sometimes they do not match exactly:
#   expect(parsed_rebuilt).to eql("slightly different outcome")
# TODO: write a matcher that warns when "slightly different outcome" is not
#       different. That way we know we are introducing unexpected duplication.
Mziserman commented 5 years ago

Awesome, thanks !