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
Thanks
Emmanuel
On Jan 2, 2009, at 10:45 AM, Peter Jaros wrote:
On Fri, Jan 2, 2009 at 1:20 PM, Emmanuel Pinault
<seatm...@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
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users