Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jdkato committed Mar 22, 2024
1 parent 5b1878d commit 080bc0b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
1 change: 1 addition & 0 deletions Google/Headings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,4 @@ exceptions:
- Visual
- VS
- Windows
- JSON
5 changes: 2 additions & 3 deletions features/rules.feature
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Feature: Rules
When I test "Contractions"
Then the output should contain exactly:
"""
test.md:3:1:Google.Contractions:Use 'it's' instead of 'It is'.
test.md:3:1:Google.Contractions:Use 'It's' instead of 'It is'.
"""

Scenario: Use of dashes
Expand Down Expand Up @@ -87,11 +87,10 @@ Feature: Rules
test.md:9:1:Google.OxfordComma:Use the Oxford comma in 'I dedicate this book to my parents, Ayn, Rand and'.
test.md:11:46:Google.EmDash:Don't put a space before or after a dash.
test.md:13:24:Google.EmDash:Don't put a space before or after a dash.
test.md:13:25:Google.EnDash:Use an em dash ('—') instead of '–'.
test.md:13:27:Google.Exclamation:Don't use exclamation points in text.
test.md:15:5:Google.Ellipses:In general, don't use an ellipsis.
test.md:17:8:Google.Exclamation:Don't use exclamation points in text.
test.md:19:18:Google.LyHyphens:' publicly-' doesn't need a hyphen.
test.md:19:19:Google.LyHyphens:'publicly-available' doesn't need a hyphen.
test.md:23:13:Google.Parens:Use parentheses judiciously.
test.md:25:24:Google.Quotes:Commas and periods go inside quotation marks.
test.md:27:34:Google.Semicolons:Use semicolons judiciously.
Expand Down
4 changes: 2 additions & 2 deletions features/steps.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cmd = 'vale --output=line --sort --normalize --relative'
cmd = 'vale --output=line --sort --normalize --relative --no-global'

When(/^I test "(.*)"$/) do |rule|
step %(I cd to "../../fixtures/#{rule}")
step %(I run `#{cmd} .`)
end
end
4 changes: 2 additions & 2 deletions fixtures/Headings/test.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Test: modern documentation management
# Test: Modern documentation management

# This is a heading

Expand All @@ -12,4 +12,4 @@

# This vs. heading

# This is a heading: This is a subheading
# This is a heading: This is a subheading

0 comments on commit 080bc0b

Please sign in to comment.