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?

Ashley
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to