buildr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ketan Padegaonkar <ketanpadegaon...@gmail.com>
Subject Re: Running a test suite against Buildr with Cucumber
Date Wed, 18 Feb 2009 19:34:52 GMT
Antoine pointed out to a hidden gem[1] that allows running a scenario in 
a controlled 'world'.

All we needed to do was:

World do |world|
   world.extend(SpecHelpers)
end

Our specs[2] now run fine and we hope to post our experiences with buildr.

[1] http://wiki.github.com/aslakhellesoy/cucumber/a-whole-new-world
[2] 
http://github.com/ketan/buildr4eclipse/blob/9c785b548acad5adc3efbb5555f07f61df94f7c9/features/step_definitions/steps.rb


-- Ketan


On 18/2/09 23:51, Antoine Toulme wrote:
> I am wondering, are we missing the equivalent of this ? (at the end of
> spec_helpers.rb)
>
> Spec::Runner.configure do |config|
>      # Make all Buildr methods accessible from test cases, and add various
> helper methods.
>      config.include Buildr, SpecHelpers
>
>      # Sanbdox Buildr for each test.
>      config.include Sandbox
>    end
>

Mime
View raw message