Method: Magellan::ExpectedLinksTracker#initialize
- Defined in:
- lib/magellan/expected_links_tracker.rb
#initialize(expected_patterns) ⇒ ExpectedLinksTracker
Create a new expected links tracker. An array of tuples of the url pattern and expected link is a required argument. Example: Magellan::ExpectedLinksTracker.new([])
12 13 14 15 16 |
# File 'lib/magellan/expected_links_tracker.rb', line 12 def initialize(expected_patterns) @errors = [] @expected_patterns = expected_patterns @evaluated_expectations = {} end |