Skip to content

Commit 98d267d

Browse files
committed
Make the generate script use the same rubocop config as the repo
1 parent b6d2e9e commit 98d267d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

exercises/practice/acronym/acronym_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def test_punctuation_without_whitespace
3030
def test_very_long_abbreviation
3131
skip
3232
assert_equal 'ROTFLSHTMDCOALM',
33-
Acronym.abbreviate('Rolling On The Floor Laughing So Hard That My Dogs Came Over And Licked Me')
33+
Acronym.abbreviate('Rolling On The Floor Laughing So Hard That My Dogs Came Over And Licked Me')
3434
end
3535

3636
def test_consecutive_delimiters

generatorv2/lib/generator.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def generate(result_path = "./exercises/practice/#{@exercise}/#{@exercise}_test.
2525

2626
File.write(result_path, result)
2727
cli = RuboCop::CLI.new
28-
cli.run(['-x', "--force-default-config", "-o", "/dev/null", result_path])
28+
cli.run(['-x', "-c", ".rubocop.yml", "-o", "/dev/null", result_path])
2929
end
3030

3131
def underscore(str)

0 commit comments

Comments
 (0)