[rspec-users] Cucumber namespace problem
seatmanu at gmail.com
Fri Jan 2 14:03:03 EST 2009
Sorry, I made up the example to explain my problem but yes, it should
be Steputils. post in each of the steps.
But the problem was calling a spec matcher within that class. My
solution to get it i to work is to extend my class with Spec::Matcher
On Jan 2, 2009, at 10:45 AM, Peter Jaros wrote:
> 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
>> Given "some step description 2 that is slighty different for better
>> readability " do
>> and in steputils I have
>> class Steputils
>> def self.post(args)
>> args.should_not be_empty
> Is that code right? It looks to me like Steputils.post is never
> getting called. You're calling SomeClass.post instead.
> rspec-users mailing list
> rspec-users at rubyforge.org
More information about the rspec-users