Sha256: c64882f78c73e7543481a759f6150d866aa1329dd0516f6b1f4a8e7fbab41011
Contents?: true
Size: 590 Bytes
Versions: 20
Compression:
Stored size: 590 Bytes
Contents
require 'test_helper' class GroupsControllerTest < ActionController::TestCase tests Maestrano::Account::GroupsController context "unauthenticated" do should "deny access" do delete :destroy, id: 'cld-1' assert_equal '401', response.code end end context "authenticated" do setup do @request.env["HTTP_AUTHORIZATION"] = "Basic " + Base64.encode64("#{Maestrano.param('api.id')}:#{Maestrano.param('api.key')}") end should "be successful" do delete :destroy, id: 'cld-1' assert_equal '200', response.code end end end
Version data entries
20 entries across 20 versions & 2 rubygems