Re: [rspec-users] any_instance

2011-11-06 Thread Sidu Ponnappa
> 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:

[rspec-users] any_instance

2011-11-06 Thread Bram
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

Re: [rspec-users] any_instance

2008-06-05 Thread David Chelimsky
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 _

Re: [rspec-users] any_instance

2008-06-05 Thread David Chelimsky
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

Re: [rspec-users] any_instance

2008-06-05 Thread Matt Mower
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

Re: [rspec-users] any_instance

2008-06-04 Thread Scott Taylor
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

Re: [rspec-users] any_instance

2008-06-04 Thread Matt Mower
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

Re: [rspec-users] any_instance

2008-06-04 Thread David Chelimsky
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

[rspec-users] any_instance

2008-06-04 Thread Matt Mower
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