summaryrefslogtreecommitdiff
path: root/users/test/integration/api/login_test.rb
blob: a760d381f7be3164d1a742f750ec2f201cc42501 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
require 'test_helper'

class LoginTest < RackTest

  setup do
    @login = "integration_test_user"
  end

  test "require json requests" do
    put "http://api.lvh.me:3000/1/sessions/" + @login,
      :client_auth => "This is not a valid login anyway"
    assert_json_error login: I18n.t(:all_strategies_failed)
  end

end