> Any clues as to what could be wrong?
It's either a bug or some other tests have side effects that only show
up when run together. Let me try to replicate it on one of my
codebases and get back to you.
Best,
Sidu Ponnappa.
http://c42.in
http://rubymonk.com
On 3 November 2011 04:11, Bram wrote:
Hello,
I'm trying to stub out a method with the any_instance method, this
works well if I run the spec individually however when I do a full run
it will call the actual method:
example "" do
Library::Class.any_instance.stub(:method).and_return true
Model.create
end
This will fire off the befo
On Jun 5, 2008, at 5:07 AM, Matt Mower wrote:
Does your patch work? I wasn't clear whether David was saying that
it doesn't.
The patch works but is incomplete and duplicates a bunch of code. You
should probably be able to use it as/is for what you need.
Cheers,
David
_
On Jun 4, 2008, at 9:05 PM, Scott Taylor wrote:
There's a general idea with rspec (and one which probably isn't
present in other testing frameworks) that says that testing *should*
influence your design.
This isn't really a framework issue - it's about TDD. Remember that
BDD started off as
HI Scott.
On Thu, Jun 5, 2008 at 3:05 AM, Scott Taylor
<[EMAIL PROTECTED]> wrote:
> There's a general idea with rspec (and one which probably isn't present in
> other testing frameworks) that says that testing *should* influence your
> design. I'm sure this is one of the reasons that David consid
On Jun 4, 2008, at 9:40 AM, Matt Mower wrote:
Hi David.
On Wed, Jun 4, 2008 at 2:24 PM, David Chelimsky
<[EMAIL PROTECTED]> wrote:
There was an implementation of it that didn't quite work for me in
http://github.com/dchelimsky/rspec/commit/45a6837 so we reverted
it. I have
zero personal
Hi David.
On Wed, Jun 4, 2008 at 2:24 PM, David Chelimsky <[EMAIL PROTECTED]> wrote:
> There was an implementation of it that didn't quite work for me in
> http://github.com/dchelimsky/rspec/commit/45a6837 so we reverted it. I have
> zero personal interest in this feature (use of which I find to b
On Jun 4, 2008, at 4:19 AM, Matt Mower wrote:
Hi folks.
I'm very interested in the status of a port of any_instance from
Mocha to RSpec.
In particular I have a spec suite that I wrote using RSpec but with
Mocha that depends heavily on any_instance. This is because it stubs
out one or two m
Hi folks.
I'm very interested in the status of a port of any_instance from Mocha to RSpec.
In particular I have a spec suite that I wrote using RSpec but with
Mocha that depends heavily on any_instance. This is because it stubs
out one or two methods from an underlying API. In attempting to
conve