Skip to content

Instantly share code, notes, and snippets.

@sixtyfive
Created September 15, 2011 22:48
Show Gist options
  • Select an option

  • Save sixtyfive/1220703 to your computer and use it in GitHub Desktop.

Select an option

Save sixtyfive/1220703 to your computer and use it in GitHub Desktop.
# encoding: UTF-8
Gegebensei /^ein bestehender Benutzer$/ do
@user = Factory(:user)
end
Wenn /^ich mich mit meinen Zugangsdaten anmelde$/ do
visit '/users/sign_in'
fill_in 'Benutzername', :with => @user.username
fill_in 'Passwort', :with => 'password'
click_button 'Anmelden'
end
Dann /^bekomme ich die Tätigkeiten der aktuellen Woche angezeigt$/ do
visit '/'
page.should have_content 'Erfolgreich angemeldet.'
page.should have_css '#activities_index'
end
Angenommen /^ein bestehender Benutzer ist angemeldet$/ do
pending # express the regexp above with the code you wish you had
end
Wenn /^ich mich abmelde$/ do
pending # express the regexp above with the code you wish you had
end
Dann /^wird mir die erneute Anmeldung angeboten$/ do
pending # express the regexp above with the code you wish you had
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment