Skip to content


Spec outputting to stderr #318

merged 1 commit into from

2 participants


The test on line 128 in group_spec is outputting to stderr. I added a capture for it, but this is probably not the expected behavior. Probably introduced in c1665b3. /cc @JoshCheek

@sferik sferik merged commit f8c4c7a into erikhuda:master

1 check passed

Details default The Travis build passed
Erikhuda member

Thanks Justin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 28, 2013
  1. @justincampbell
Showing with 7 additions and 1 deletion.
  1. +7 −1 spec/group_spec.rb
8 spec/group_spec.rb
@@ -126,8 +126,14 @@
it "allows to invoke a class from the class binding by the given option" do
- content = capture(:stdout) { G.start(["--invoked", "e"]) }
+ error = nil
+ content = capture(:stdout) {
+ error = capture(:stderr) {
+ G.start(["--invoked", "e"])
+ }
+ }
expect(content).to match(/invoke e/)
+ expect(error).to match(/ERROR: thor two was called with arguments/)
it "shows invocation information to the user" do
Something went wrong with that request. Please try again.