Displaying 5 results from an estimated 5 matches for "lettuce".
Did you mean:
lettice
2008 Mar 08
10
rspec groups?
One of the things I really liked about TestNG was the grouping
feature. Are there any plans for rSpec to incorporate that? Is there
any way to emulate that functionality in rspec?
Will.
2010 Feb 26
1
match.call to obtain the name of a function
...function is JANK
Is there not a more direct way? To paraphrase Douglas Bates, the above approach is like the diner scene in the movie "Five Easy Pieces". You get an order of toast by first ordering a chicken sandwich and then telling the waitress to hold (that is, to subtract) the meat, lettuce, and mayonnaise.
Thanks for any insights
Jacob Wegelin
2008 Jan 27
8
Textmate RSpec Bundle ''it'' snippet
It seems to me that the RSpec bundle''s ''it'' snippet is in need of some
love. By default, a newly inserted spec passes. This seems odd as it
is misleading. It also makes it harder find what specs still need to
be completed if you return to an RSpec module after a break.
I propose that the ''it'' snippet is changed to the following:
it
2008 May 29
7
how to write spec for infinite loop?
Hi,
I''ve got trouble when describe infinite loop.
code snippet:
def start_loop
while true
data = self.server.handle_client
if data
self.manager.dispatch(data)
end
end
end
without the loop, it is easy to test the logic.
but how can I describe it to tell the developer ( me :-) ) that there
should be an infinite loop inside.
thanks.
Regards,
Peng
2008 May 10
4
Newbie: lambda do...end.should change(Model, :count).by(1). Doesn''t work
Hi to everyone,
I''m an RSpec, and BDD in general, newbie so in order to learn I have
chosen to use my personal website as a tesbed.
I''m having difficulties juggling with mocks, and in particula with the
following code.
Here''s the controller action:
def create
@album = Album.new(params[:album])
if @album.save
flash[:notice] = "album saved"