Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Spec outputting to stderr #318

Merged
merged 1 commit into from

2 participants

@justincampbell

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
@sferik
Owner

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
This page is out of date. Refresh to see the latest.
Showing with 7 additions and 1 deletion.
  1. +7 −1 spec/group_spec.rb
View
8 spec/group_spec.rb
@@ -126,8 +126,14 @@
end
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/)
end
it "shows invocation information to the user" do
Something went wrong with that request. Please try again.