Skip to content
This repository has been archived by the owner on Sep 24, 2019. It is now read-only.

Commit

Permalink
spec test auth capabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick Bargnesi committed Apr 19, 2016
1 parent ec6a143 commit 0e837bc
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions spec/auth_spec.rb
@@ -0,0 +1,12 @@
require_relative 'spec_helper'

describe 'Authentication capabilities' do
it 'indicates whether authentication is enabled' do
response = api_conn.get '/api/authentication-enabled'
expect(response.status).to eql(HTTP_OK)
expect(response[:content_type]).to eql('application/json')
enabled = JSON.parse(response.body)
expect([true, false].include? enabled['enabled']).to eql(true)
end
end

0 comments on commit 0e837bc

Please sign in to comment.