diff options
Diffstat (limited to 'test/integration')
-rw-r--r-- | test/integration/.gitkeep | 0 | ||||
-rw-r--r-- | test/integration/authentication_test.rb | 20 |
2 files changed, 0 insertions, 20 deletions
diff --git a/test/integration/.gitkeep b/test/integration/.gitkeep deleted file mode 100644 index e69de29..0000000 --- a/test/integration/.gitkeep +++ /dev/null diff --git a/test/integration/authentication_test.rb b/test/integration/authentication_test.rb deleted file mode 100644 index 9ace8f8..0000000 --- a/test/integration/authentication_test.rb +++ /dev/null @@ -1,20 +0,0 @@ -require 'test_helper' - -class AuthenticationTest < ActionDispatch::IntegrationTest - fixtures :all - - test "successful login" do - get '/', {}, { 'HTTP_AUTHORIZATION' => basic_auth_creds(users(:test_member).login, GLSAMAKER_DEVEL_PASSWORD) } - assert_response :success - end - - test "unknown user login" do - get '/', {}, { 'HTTP_AUTHORIZATION' => basic_auth_creds("doesnotexist", "invalidpassword") } - assert_response 401 - end - - test "locked user login" do - get '/', {}, { 'HTTP_AUTHORIZATION' => basic_auth_creds(users(:test_locked).login, GLSAMAKER_DEVEL_PASSWORD) } - assert_response 401 - end -end |