Skip to content

Instantly share code, notes, and snippets.

@mikebaldry
Created October 18, 2012 08:35
Show Gist options
  • Save mikebaldry/3910482 to your computer and use it in GitHub Desktop.
Save mikebaldry/3910482 to your computer and use it in GitHub Desktop.
<clocKwize> vectorshelve, your cucumber tests should be from a users point of view, so write "Then the user should see a sucessful message in their current locale" and the step for that be page.should have_content i18n.get(arg1, @user.locale) or something
* stantona has quit (Ping timeout: 268 seconds)
<clocKwize> arg1 should actually be :feedback_sucess_message or something whatever
* CrazyHorse18 has quit (Quit: Leaving.)
* sideshow1oder (~phil@ppp-88-217-34-120.dynamic.mnet-online.de) has joined #RubyOnRails
* vectorshelve_ (75c126a0@gateway/web/freenode/ip.117.193.38.160) has joined #RubyOnRails
<clocKwize> otherwise the implementation details a user doesn't cares about are visible in a user centric test. would your user say "Then I should see a sucessful message" or "Then i should see t(feedback_sucessful)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment