Hey speclers,
My spec-fu is failing me on a message expectation in which I would like to
verify that the block passed to a certain method yields the proper
value. I would like to be able to say something like:
def bar
# .. some code
foo do
'bar' # want to verify this value
end
end
Not sure if I can easily do this
Just ran into a bug in a rails app where ApplicationController
overrides rescue_action_in_public leading to the error page not being
displayed.
The fix was to call super at the end of the method.
I'd like to write a spec to ensure that this doesn't regress, but
As a note of feedback, when I do a spec --help, I saw this line...
-e, --example [NAME|FILE_NAME] Execute example(s) with matching
name(s). If the argument is
the path to an existing file
(typically generated by a previous
On Jan 28, 2010, at 5:49 pm, Rick DeNatale wrote:
I'd like to write a spec to ensure that this doesn't regress, but my
imagination is failing me as to how to do it.
Any ideas?
Yes: don't use inheritance for implementations. The bug you describe is
arguably a violation of the Liskov
On Jan 28, 2010, at 1:29 pm, Paul Hinze wrote:
I believe the lack of ability to use this notation comes down to a ruby
limitation, but I'm not sure. If that's the case, then we would need a
specific argument expectation (along the lines of my suggestion) that
executes in a context in which
Ashley Moran ashley.mo...@patchspace.co.uk on 2010-01-28 at 13:28:
On Jan 28, 2010, at 1:29 pm, Paul Hinze wrote:
I believe the lack of ability to use this notation comes down to a ruby
limitation, but I'm not sure. If that's the case, then we would need a
specific argument expectation
On 28 Jan 2010, at 21:14, Paul Hinze wrote:
Ashley Moran ashley.mo...@patchspace.co.uk on 2010-01-28 at 13:28:
On Jan 28, 2010, at 1:29 pm, Paul Hinze wrote:
I believe the lack of ability to use this notation comes down to a
ruby
limitation, but I'm not sure. If that's the case, then we
Nicholas Wieland wrote:
Does someone have an example on faking a file upload for just ensuring
it gets called, without actually uploading the file to s3.
I thought that stubbing Model.has_attached_file would be enough, but
it doesn't seem so ...
This is what I did:
Video.stub!(
Nicholas Wieland wrote:
Does someone have an example on faking a file upload for just ensuring
it gets called, without actually uploading the file to s3.
I thought that stubbing Model.has_attached_file would be enough, but
it doesn't seem so ...
This is what I did:
Video.stub!(