I'm also playing with another patch that lets you do:

describe 'the main menu' do
  given 'a successful login'
  given 'language is swedish'

  it 'has a link to a secret page' do
    request(:menu).should have_selector('a[href="/secret/page"]')
  end
end

---

the main menu, given a successful login, given language is swedish
- has a link to a secret page

---

I think I like it. But this could be absolute YAGNI. And I'm not too
happy with the inconsistent behavior this introduces, depending on if
you supply a block to given or not.

--~--~---------~--~----~------------~-------~--~----~
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