Skip to content

Commit f8c4c7a

Browse files
committed
Merge pull request #318 from justincampbell/thor-group-stderr
Spec outputting to stderr
2 parents fc94521 + 0458a46 commit f8c4c7a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

spec/group_spec.rb

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,14 @@
126126
end
127127

128128
it "allows to invoke a class from the class binding by the given option" do
129-
content = capture(:stdout) { G.start(["--invoked", "e"]) }
129+
error = nil
130+
content = capture(:stdout) {
131+
error = capture(:stderr) {
132+
G.start(["--invoked", "e"])
133+
}
134+
}
130135
expect(content).to match(/invoke e/)
136+
expect(error).to match(/ERROR: thor two was called with arguments/)
131137
end
132138

133139
it "shows invocation information to the user" do

0 commit comments

Comments
 (0)