On Wed, Nov 12, 2008 at 8:59 AM, David Chelimsky <[EMAIL PROTECTED]> wrote:
> On Wed, Nov 12, 2008 at 7:30 AM, aslak hellesoy
> <[EMAIL PROTECTED]> wrote:
>> World do
>>  world = Object.new
>>  world.extend(Logging::Logger)
>>  world
>> end
>
> World do
>  returning Cucumber::Rails::World do |world|
>    world.extend(Logging::Logger)
>  end
> end

It would be really nice to be able to do:

World do |world|
 returning world do |w|
   w.extend(Logging::Logger)
  end
end

This way steps files could extend the world by adding to a chain,
agnostic of the nature of the original world object.

Peter
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to