From 0e837bc3d383a4690d83b10b8377a8cf017fe439 Mon Sep 17 00:00:00 2001 From: Nick Bargnesi Date: Tue, 19 Apr 2016 10:42:48 -0400 Subject: [PATCH] spec test auth capabilities --- spec/auth_spec.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 spec/auth_spec.rb diff --git a/spec/auth_spec.rb b/spec/auth_spec.rb new file mode 100644 index 0000000..0929535 --- /dev/null +++ b/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 +