Sha256: 3febedfbaecbd39af0750b4ff9f639c75458355c946d59ae4d981aef03aaee75
Contents?: true
Size: 818 Bytes
Versions: 59
Compression:
Stored size: 818 Bytes
Contents
When(/^he goes to the users section$/) do visit dorsale.users_path end When(/^he creates a new user$/) do find("[href$='users/new']").click fill_in "user_email", with: "toto@toto.fr" find("[type=submit]").click end Then(/^the user is visible in the user list$/) do expect(page).to have_content I18n.t("messages.users.create_ok") expect(page).to have_content "toto@toto.fr" end When(/^he click on update user button$/) do expect(page).to have_content @user.email find("#main [href$=edit]").click end When(/^he update the user$/) do fill_in "user_email", with: "toto@toto.fr" find("[type=submit]").click end Then(/^the user's new informations are visible in the users list$/) do expect(page).to have_content I18n.t("messages.users.update_ok") expect(page).to have_content "toto@toto.fr" end
Version data entries
59 entries across 59 versions & 1 rubygems