# Cucumber | Then I should see "view.common.status.logged\_in\_as"

**URL:** <https://www.ruby-forum.com/t/cucumber-then-i-should-see-view-common-status-logged-in-as/175286>\
**Category:** Rails\
**Created:** [September 10, 2009, 4:45pm UTC](https://www.ruby-forum.com/t/cucumber-then-i-should-see-view-common-status-logged-in-as/175286 "2009-09-10T16:45:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rafael](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/4da419/32.png) [@rafael](https://www.ruby-forum.com/u/rafael)\
**Post date:** [September 10, 2009, 4:45pm UTC](https://www.ruby-forum.com/t/cucumber-then-i-should-see-view-common-status-logged-in-as/175286/1 "2009-09-10T16:45:51Z")

</div>

Hi guys,

how could I run this scenarion for each language?  
Is it suitable anyway?

I slightly modified the webrat steps:

Then /^I should see “([^”]\*)"$/ do |text|  
response.should contain(I18n.t(text.to\_sym))  
end

Does anybody have a hint for me?

Thanks a lot!

Rafael

---

<div class="post-metadata">

**Author:** ![rafael](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/4da419/32.png) [@rafael](https://www.ruby-forum.com/u/rafael)\
**Post date:** [September 10, 2009, 10:02pm UTC](https://www.ruby-forum.com/t/cucumber-then-i-should-see-view-common-status-logged-in-as/175286/2 "2009-09-10T22:02:02Z")

</div>

It depends on exactly what value is important to the stakeholders. If  
specific messages are important, then you could use a scenario  
outline: [http://wiki.github.com/aslakhellesoy/cucumber/scenario-outlines](http://wiki.github.com/aslakhellesoy/cucumber/scenario-outlines)

If it is just important to display a certain message, then what you  
have done is fine. Just be aware that if you change the names of your  
translations then this test won’t catch any related bug.

I would be inclined to do the first one (Scenario Outlines). It tests  
what most people care about (the actual message).

Paul Cortens  
[http://www.cebuya.com](http://www.cebuya.com)

---

<div class="post-metadata">

**Author:** ![rafael](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/4da419/32.png) [@rafael](https://www.ruby-forum.com/u/rafael)\
**Post date:** [September 13, 2009, 7:23pm UTC](https://www.ruby-forum.com/t/cucumber-then-i-should-see-view-common-status-logged-in-as/175286/3 "2009-09-13T19:23:44Z")

</div>

THnx a lot, that’s exactly what i was looking for!

rgds

Rafael
