On 17-mrt-2008, at 15:01, Ashley Moran wrote:

> On 17/03/2008, Bart Zonneveld <[EMAIL PROTECTED]> wrote:
> Hmm, all of a sudden this thread is spiraling away from my original
> question :). Which is good of course :).
> I've made some inline comments.
>
> I can see how this would work for you, but I actually want something
> more abstracted.
> You're specifing the sign_in method inside the same stepgroup, but I
> want to reference it from another stepgroup. So, to follow your
> example, I want to call sign_in(page, username, password) from my
> common_steps stepgroup.
>
> regards,
> bartz
>
>
> Bartz,
>
> Without checking, I assume this could be done as
>
> steps_for :common do
>   Given "something" do
>     steps_for(:login).sign_in(...)
>   end
> end
>
> Is that what you mean?

Very close, but not quite :). In my common step group, I'd like to  
call a (for instance) valid_attributes method, which is defined on  
the stepgroup which is used in my story. Hope that makes sense...

regards,
bartz
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to