New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rspec: tmux is still being run someplace... #563
Comments
Ah, it looks like with randomized test orders, the stubs sometimes fail. With seed 24183 I got this:
I think this is why travis failed on pull request #559 the first time. |
I'm taking a look at converting all the stubbing syntax, etc. to rspec-mocks 3.0 syntax: e.g. allow(Guard).to receive(:some_method)
allow_any_instance_of(Hash).to receive(:some_method) |
Hmm...it looks like there is some You can see it by applying this patch below. I can't commit it because you have to press Control-C when it hangs. Basically rspec blows up due to trying to record what's going on. grin diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index 72f3390..a0b17e0 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -37,6 +37,11 @@
allow(Guard::Notifier::TerminalTitle).to receive(:puts)
allow(Pry.output).to receive(:puts)
+ allow_any_instance_of(Object).to receive(:system) { fail 'Unstubbed Object.system()' }
+ allow_any_instance_of(Object).to receive(:`) { fail 'Unstubbed Object.`()' }
+ allow(Kernel).to receive(:system) { fail 'Unstubbed Kernel.system()' }
+ allow(Kernel).to receive(:`) { fail 'Unstubbed Kernel.`()' }
+
::Guard.reset_groups
::Guard.reset_plugins
end I suspect that there needs to be a unified approach to handling the various I haven't quite figured out how all the parts fit together, but I'd be willing to write these changes with help. |
I "fixed" it by stubbing the Tmux notifier in the spec helper. @rymai pull request will solve it more properly, but for now we can ensure Travis doesn't fail anymore because of this. |
It appears that tmux is being run someplace in ruby 2.0.0...
This is with commit 224e350 on 2.0.0p451 on OS X 10.9.1.
You can see it in the "session not found" and "couldn't set" messages.
This was with random seed 59332.
The text was updated successfully, but these errors were encountered: