]> git.openstreetmap.org Git - rails.git/blobdiff - test/system/user_suspension_test.rb
Merge branch 'master' into feature/add-communities-page
[rails.git] / test / system / user_suspension_test.rb
diff --git a/test/system/user_suspension_test.rb b/test/system/user_suspension_test.rb
new file mode 100644 (file)
index 0000000..a725123
--- /dev/null
@@ -0,0 +1,15 @@
+require "application_system_test_case"
+
+class UserSuspensionTest < ApplicationSystemTestCase
+  test "User shown a message when suspended mid-session" do
+    user = create(:user)
+    sign_in_as(user)
+    visit edit_account_path
+    assert_content "My Settings"
+
+    user.suspend!
+
+    visit edit_account_path
+    assert_content "This decision will be reviewed by an administrator shortly"
+  end
+end