Created
September 15, 2011 22:48
-
-
Save sixtyfive/1220703 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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