Is there a way right now to run some setup code once after
environment.rb has loaded but before all the scenarios are run?
And how about a teardown after everything's done?
cheers,
Matt
http://blog.mattwynne.net
http://songkick.com
In case you wondered: The opinions expressed in this ema
On Tue, Sep 2, 2008 at 3:50 PM, Matt Wynne <[EMAIL PROTECTED]> wrote:
> Is there a way right now to run some setup code once after environment.rb
> has loaded but before all the scenarios are run?
Yes. Just use Ruby :-)
Put it at the "main level" in one of your ruby files under steps/
> And how
On 2 Sep 2008, at 15:24, aslak hellesoy wrote:
On Tue, Sep 2, 2008 at 3:50 PM, Matt Wynne <[EMAIL PROTECTED]> wrote:
Is there a way right now to run some setup code once after
environment.rb
has loaded but before all the scenarios are run?
Yes. Just use Ruby :-)
Put it at the "main level"
On Tue, Sep 2, 2008 at 4:53 PM, Matt Wynne <[EMAIL PROTECTED]> wrote:
> On 2 Sep 2008, at 15:24, aslak hellesoy wrote:
>
>> On Tue, Sep 2, 2008 at 3:50 PM, Matt Wynne <[EMAIL PROTECTED]> wrote:
>>>
>>> Is there a way right now to run some setup code once after environment.rb
>>> has loaded but befo
Hi,
>, aslak hellesoy wrote (sometime today):
> at_exit do
>..
> end
If I had a number of steps, stories and runners where would I put the
kernal at_exit method?
At the last 'Then' in a step file? At the bottom of that particular
runner file? I assume there would be numerous at_exit method
Hi,
, aslak hellesoy wrote (sometime today):
at_exit do
..
end
If I had a number of steps, stories and runners where would I put the
kernal at_exit method?
At the last 'Then' in a step file?
No, never inside a step. You should only register each at_exit hook
once.
At the bottom
I assume you've followed the Wiki instructions about how to set up
Cucumber with Rails:
http://github.com/aslakhellesoy/cucumber/wikis (I should move this to
a separate Rails page)
Then you should have a steps/env.rb file that looks like this:
http://github.com/aslakhellesoy/cucumber/tree/master
Hi,
Q1 - Can I assume that the core testing framework (e.g. rails unit
testing versus RSpec) is a kind of separate issue to whether you using
mocking or not? i.e. you could use Mocha with either the rails unit
test framework or Rspec? Or is there something in Rspec that
integrates moreso with mock
On Tue, Sep 2, 2008 at 11:05 PM, Greg Hauptmann
<[EMAIL PROTECTED]> wrote:
> Hi,
>
> Q1 - Can I assume that the core testing framework (e.g. rails unit
> testing versus RSpec) is a kind of separate issue to whether you using
> mocking or not? i.e. you could use Mocha with either the rails unit
> te
Hi James,
Thanks for writing these instructions up in detail. I've just followed them
and will play around with them over the next few days. A couple of
questions
1) I assume with submodules I can create and switch to branches of the
submodules if I want to try my app out with some patches appl
I would voice a word of caution on using submodules in Git. Yes, they are
similar to svn:externals, but in my experience, they are very fragile. The
fragility comes in when/if you need to switch the submodule URL/definition
from what it is currently to something else. I've had no end of trouble
Hi guys,
After updating to edge rails I've just struck this problem too. I've just
grabbed fresh updates of rspec, rspec-rails, and rails and I'm receiving a
few controller spec failures related to view rendering when views shouldn't
be rendered (failures relate to mock objects not having expect
On Tue, Sep 2, 2008 at 5:49 PM, Tim Haines <[EMAIL PROTECTED]> wrote:
> Hi James,
>
> Thanks for writing these instructions up in detail. I've just followed them
> and will play around with them over the next few days. A couple of
> questions
>
> 1) I assume with submodules I can create and switc
I had the same problem with some of my specs. Solved by adding
require 'test/unit'
to the spec file. Not complete sure why this occurs but the
Test::Unit.run? method is defined in test/unit.rb.
kasutaja wrote:
> Why am I getting this error if running from Netbeans or just from
> command
> line
14 matches
Mail list logo