diaspora/features/step_definitions/message_steps.rb
Benjamin Neff e6b72b526f remove "not public" error page
this is not used anymore:
* not logged in users are redirected to the login page
* logged in users see the normal 404 page
2016-03-07 05:52:54 +01:00

13 lines
513 B
Ruby

Then /^I should see the "(.*)" message$/ do |message|
text = case message
when "alice is excited"
@alice ||= FactoryGirl.create(:user, :username => "Alice")
I18n.translate('invitation_codes.excited', :name => @alice.name)
when "welcome to diaspora"
I18n.translate('users.getting_started.well_hello_there')
else
raise "muriel, you don't have that message key, add one here"
end
page.should have_content(text)
end