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

class AccountFlowTest < 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