def test_can_get_violation_definitions(self):
        reviewer = Mock()
        validator = UrlWithUnderscoreValidator(reviewer)

        definitions = validator.get_violation_definitions()

        expect(definitions).to_length(1)

        expect('invalid.url_word_separator' in definitions).to_be_true()

        expect(validator.get_url_with_underscore_message()).to_equal(
            'Google treats a hyphen as a word separator, but does '
            'not treat an underscore that way. Google treats and '
            'underscore as a word joiner, so red_sneakers is the '
            'same as redsneakers to Google. This has been confirmed '
            'directly by Google themselves, including the fact that '
            'using dashes over underscores will have a (minor) '
            'ranking benefit.')
    def test_can_get_violation_definitions(self):
        reviewer = Mock()
        validator = UrlWithUnderscoreValidator(reviewer)

        definitions = validator.get_violation_definitions()

        expect(definitions).to_length(1)

        expect('invalid.url_word_separator' in definitions).to_be_true()

        expect(validator.get_url_with_underscore_message()).to_equal(
            'Google treats a hyphen as a word separator, but does '
            'not treat an underscore that way. Google treats and '
            'underscore as a word joiner, so red_sneakers is the '
            'same as redsneakers to Google. This has been confirmed '
            'directly by Google themselves, including the fact that '
            'using dashes over underscores will have a (minor) '
            'ranking benefit.'
        )