Displaying 3 results from an estimated 3 matches for "at_least_onc".
Did you mean:
at_least_once
2006 Dec 15
5
Testing event driven Socket classes
Ok, here is the class, I want to Unit Test, its part of a large app
and is based on EventMachine library.
I want to mock the class TickServer ( i.e not stub it) . Since in
actual scenario, you can''t do this on this class:
@server = TickServer.new # will toss an exception at your face
you must initialize the server like this:
EventMachine.run {
2008 Jan 21
4
stubs! method
Hello James et al.
I try to set only one expectation per test, but I also dislike having
extra stub declarations that are no longer used, thus I often find
myself wanting Object.expects(:foo).at_least_once. That works, but I
don''t actually "expect" foo to be called, in fact, I don''t care, I
only want to know when it isn''t called so I can remember to clean up
the test. Since I don''t "expect" foo, it''s also quite verbose for my
p...
2007 Jul 26
5
Coding standards and whitespace
...dle/Snippets/and_return_block.tmSnippet
RSpec.tmbundle/Snippets/and_return_value.tmSnippet
RSpec.tmbundle/Snippets/and_throw.tmSnippet
RSpec.tmbundle/Snippets/and_yield.tmSnippet
RSpec.tmbundle/Snippets/any_number_of_times.tmSnippet
RSpec.tmbundle/Snippets/at_least.tmSnippet
RSpec.tmbundle/Snippets/at_least_once.tmSnippet
RSpec.tmbundle/Snippets/at_least_twice.tmSnippet
RSpec.tmbundle/Snippets/at_most.tmSnippet
RSpec.tmbundle/Snippets/at_most_once.tmSnippet
RSpec.tmbundle/Snippets/at_most_twice.tmSnippet
RSpec.tmbundle/Snippets/controller_context.tmSnippet
RSpec.tmbundle/Snippets/controller_context_RESTfu...