[rspec-users] Cucumber namespace problem

Peter Jaros peter.a.jaros at gmail.com
Fri Jan 2 13:45:28 EST 2009


On Fri, Jan 2, 2009 at 1:20 PM, Emmanuel Pinault <seatmanu at gmail.com> wrote:

> So I have a file with my steps  written like this
>
> require 'steputils'
>
> Given "some step description 1 " do
>        SomeClass.post(args)
> end
>
> Given "some step description 2 that is slighty different for better
> readability "  do
>        SomeClass.post(args)
> end
>
>
> and in steputils I have
>
> class Steputils
>
>        def self.post(args)
>                args.should_not be_empty
>        end
> end

Is that code right?  It looks to me like Steputils.post is never
getting called.  You're calling SomeClass.post instead.

Peter


More information about the rspec-users mailing list