cucumber | Then I should see "view.common.status.logged_in_as"

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

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

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

Rafael wrote:

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

rgds

Rafael