I totally agree.  I thought the same thing when I first used the given
method in my specs.

Dan Kubb
(dkubb)

On Nov 5, 10:03 am, "Per Melin" <[EMAIL PROTECTED]> wrote:
> describe 'the main menu', :given => 'a successful login' do
>   request(:menu).should have_selector('a[href="/secret/page"]')
> end
>
> ---
>
> $ spec -f specdoc spec/requests/menu.rb
>
> the main menu
> - has a link visible only to members
>
> ---
>
> That's an incorrect specification. I've made a patch that changes the
> description like this:
>
> the main menu, given a successful login
> - has a link visible only to members
>
> Isn't that better? I think it is.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"merb" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/merb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to