I have a Premise model with an after_create method, along the lines of:
class Premise < ActiveRecord::Base
...
after_create :etl_attributes
...
end
In production code, etl_attributes accesses the web. For testing I'm
using WebMock and VCR in cases where I want to test the etl_attributes
fu
On Feb 14, 11:31 am, Fearless Fool wrote:
> I have a Premise model with an after_create method, along the lines of:
>
> class Premise < ActiveRecord::Base
> ...
> after_create :etl_attributes
> ...
> end
>
> In production code, etl_attributes accesses the web. For testing I'm
> using WebM
We have had a really great integrated javascripting testing in our very
large, very javascripty Sinatra application. Our testing setup uses a
custom version of harmony (http://github.com/baccigalupi/harmony), that
reduces the out of control memory we were seeing in the original gem.
The trade off h
On Feb 14, 2011, at 7:08 PM, Kane Baccigalupi wrote:
> We have had a really great integrated javascripting testing in our very
> large, very javascripty Sinatra application. Our testing setup uses a
> custom version of harmony (http://github.com/baccigalupi/harmony), that
> reduces the out of cont
David Chelimsky wrote in post #981651:
I am happy to get back to you about the documentation a little later. I
want to take the time to fully describe the problems we had.
> Please let me know what is not yet documented on the following pages:
>
> http://relishapp.com/rspec/rspec-core/v/2-5/file/
Hi,
On Tue, Feb 15, 2011 at 02:31, Fearless Fool wrote:
> I have a Premise model with an after_create method, along the lines of:
>
> class Premise < ActiveRecord::Base
> ...
> after_create :etl_attributes
> ...
> end
>
> In production code, etl_attributes accesses the web. For testing I'm
>
On Feb 14, 2011, at 20:20, Kane Baccigalupi wrote:
> David Chelimsky wrote in post #981651:
>
> I am happy to get back to you about the documentation a little later. I
> want to take the time to fully describe the problems we had.
Much appreciated.
>
>> Please let me know what is not yet docu
Kane Baccigalupi wrote in post #981670:
> We can try a global, but it isn't an ideal situation.
So, we did replace @dom with $dom. That meant we could go back to doing
no manual garbage collection, and in fact we didn't even have to set the
global to nil between test files.
Doesn't that imply
David Chelimsky wrote in post #981667:
> The instance vars in after(:all) are copies, so setting them to nil
> there has no real effect. This was true in rspec 1 as well, so what you
> are experiencing is unrelated.
>
> As a workaround, how about setting a global? Not a perm solution, but
> might
Mike Mazur wrote in post #981665:
> Perhaps one way to approach this is to have WebMock return an
> appropriate success message in response to the network call that
> :etl_attributes makes.
>
> Mike
Ah - good point. With all the options for stubbing and mocking, I'd
forgotten that one. Factory
On Feb 14, 2011, at 21:53, Kane Baccigalupi wrote:
> Kane Baccigalupi wrote in post #981670:
>
>> We can try a global, but it isn't an ideal situation.
>
> So, we did replace @dom with $dom. That meant we could go back to doing
> no manual garbage collection, and in fact we didn't even have to
11 matches
Mail list logo