test/integration/authentication_test.rb in iqvoc-4.3.3 vs test/integration/authentication_test.rb in iqvoc-4.4.0

- old
+ new

@@ -15,26 +15,24 @@ # limitations under the License. require File.join(File.expand_path(File.dirname(__FILE__)), '../integration_test_helper') class AuthenticationTest < ActionDispatch::IntegrationTest - - test "sign in" do + test 'sign in' do user - visit dashboard_path(:lang => :de) - assert page.has_content?("Keine Berechtigung") - visit new_user_session_path(:lang => :de) - fill_in "E-Mail", :with => user.email - fill_in "Passwort", :with => user.password - click_button "Anmelden" - assert page.has_content?("Anmeldung erfolgreich") + visit dashboard_path(lang: :de) + assert page.has_content?('Keine Berechtigung') + visit new_user_session_path(lang: :de) + fill_in 'E-Mail', with: user.email + fill_in 'Passwort', with: user.password + click_button 'Anmelden' + assert page.has_content?('Anmeldung erfolgreich') end - test "sign out" do + test 'sign out' do login - visit dashboard_path(:lang => :de) - assert page.has_link?("Abmelden") - click_link_or_button "Abmelden" - assert page.has_content?("Abmeldung erfolgreich") + visit dashboard_path(lang: :de) + assert page.has_link?('Abmelden') + click_link_or_button 'Abmelden' + assert page.has_content?('Abmeldung erfolgreich') end - end