Skip to content

Commit 2c08a16

Browse files
Rename spec since it's no longer version specific
1 parent 6298cac commit 2c08a16

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

spec/register_spec.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class ClassOptionGroupPlugin < Thor::Group
4747
:default => "zebra"
4848
end
4949

50-
class CompatibleWith19Plugin < ClassOptionGroupPlugin
50+
class PluginInheritingFromClassOptionsGroup < ClassOptionGroupPlugin
5151
desc "animal"
5252
def animal
5353
p options[:who]
@@ -119,7 +119,7 @@ def with_args(*args)
119119
)
120120

121121
BoringVendorProvidedCLI.register(
122-
CompatibleWith19Plugin,
122+
PluginInheritingFromClassOptionsGroup,
123123
"zoo",
124124
"zoo [-w animal]",
125125
"Shows a provided animal or just zebra"
@@ -221,13 +221,13 @@ def with_args(*args)
221221
end
222222
end
223223

224-
describe "1.8 and 1.9 syntax compatibility" do
225-
it "is compatible with both 1.8 and 1.9 syntax w/o command options" do
224+
describe ".register-ing a Thor::Group subclass with class options" do
225+
it "works w/o command options" do
226226
group_output = capture(:stdout) { BoringVendorProvidedCLI.start(%w(zoo)) }
227227
expect(group_output).to match(/zebra/)
228228
end
229229

230-
it "is compatible with both 1.8 and 1.9 syntax w/command options" do
230+
it "works w/command options" do
231231
group_output = capture(:stdout) { BoringVendorProvidedCLI.start(%w(zoo -w lion)) }
232232
expect(group_output).to match(/lion/)
233233
end

0 commit comments

Comments
 (0)