On Fri, Jan 2, 2009 at 9:11 PM, David Chelimsky wrote:
> On Fri, Jan 2, 2009 at 2:04 PM, aidy lewis
> wrote:
> > Hi Aslak,
> >
> > 2009/1/2 aslak hellesoy :
> >
> >> Did you require 'spec' in your support/env.rb file?
> >
> > Is it now a standard to put the env.rb in the 'support' folder? Mine
>
On Fri, Jan 2, 2009 at 2:04 PM, aidy lewis wrote:
> Hi Aslak,
>
> 2009/1/2 aslak hellesoy :
>
>> Did you require 'spec' in your support/env.rb file?
>
> Is it now a standard to put the env.rb in the 'support' folder? Mine
> is in the 'steps' folder?
That's the direction, yes.
features/step_defin
Hi Aslak,
2009/1/2 aslak hellesoy :
> Did you require 'spec' in your support/env.rb file?
Is it now a standard to put the env.rb in the 'support' folder? Mine
is in the 'steps' folder?
Regards
Aidy
___
rspec-users mailing list
[email protected]
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
I think I found a solution to my problem. in the Steputils class,
instead of including, I perform an extend on Spec::Matcher
so my class look like
class Steputils
extend Spec::Matchers
def self.post(args)
args.should_not be_empty
end
end
Now all the
On Fri, Jan 2, 2009 at 1:20 PM, Emmanuel Pinault 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 "
On Fri, Jan 2, 2009 at 7:20 PM, Emmanuel Pinault wrote:
> Hi
>
> I am having an issue with Cucumber where I am writing in one files some
> steps where rspec matcher do not seem to be accessible.
>
> So I have a file with my steps written like this
>
> require 'steputils'
>
> Given "some step des
Hi
I am having an issue with Cucumber where I am writing in one files
some steps where rspec matcher do not seem to be accessible.
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 des