Displaying 4 results from an estimated 4 matches for "add_sigint_handl".
Did you mean:
add_sigint_handler
2007 Apr 17
8
Verifying that a block calls a method
I have something like the following:
def my_fun
my_fun2 do
raise Error
end
end
I know that I can verify that the method receives my_fun2. How can I
mock/stub out the example to verify that it calls raise Error?
Scott
2007 Apr 13
1
spec''ing out a trap/SIGINT
How would you spec out a call to Signal.trap (a ^C or a unix SIGINT)?
Scott
2007 Oct 31
6
Autotest busted with Rspec/Rails trunk
Just upgraded to latest rails and rspec builds and my autotest doesnt
work
undefined method `before'' for Spec::Rails::DSL::RailsExample:Class
(NoMethodError)
Here''s the full trace:
http://pastie.caboo.se/112754
Any ideas?
--
Posted via http://www.ruby-forum.com/.
2007 Apr 12
3
specing class methods
...ls class objects)
2. How can I tell that new.run has been called, without saying
should_receive(:new) and should_receive(:run) in separate specs?
Another complication:
How would I spec out the (instance level) run method, which has an
infinite loop?
def run
hook :run
reset
add_sigint_handler
loop do # ^c handler
#...stuff...
end
hook :quit
end
Thanks for all of your help,
Scott Taylor
PS: Sorry for my previous non-sensical emails. I was being stupid.