Skip to content

Commit aa46da9

Browse files
authored
Merge pull request #953 from exercism/update-acronym
[WIP] acronym: Update and exclude new tests
2 parents 811ac0a + b3e6854 commit aa46da9

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

exercises/acronym/.meta/generator/acronym_case.rb

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,19 @@ class AcronymCase < Generator::ExerciseCase
44
def workload
55
assert_equal(expected, "Acronym.abbreviate('#{phrase}')")
66
end
7+
8+
def to_s(*args)
9+
super unless excluded_tests.include?(test_name)
10+
end
11+
12+
private
13+
14+
# We exclude these tests because they currently don't fit the purpose
15+
# we have for Acronym on the Ruby track.
16+
def excluded_tests
17+
%w(
18+
test_apostrophes
19+
test_underscore_emphasis
20+
)
21+
end
722
end

exercises/acronym/acronym_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
require 'minitest/autorun'
22
require_relative 'acronym'
33

4-
# Common test data version: 1.5.0 787d24e
4+
# Common test data version: 1.7.0 cacf1f1
55
class AcronymTest < Minitest::Test
66
def test_basic
77
# skip

0 commit comments

Comments
 (0)