Sha256: 81001cbddef37086251430fb9a442769519c18582665784c4310d572098ec86e
Contents?: true
Size: 637 Bytes
Versions: 1
Compression:
Stored size: 637 Bytes
Contents
require 'test_helper' class GroupUsersControllerTest < ActionController::TestCase tests Maestrano::AccountHook::GroupUsersController context "unauthenticated" do should "deny access" do delete :destroy, group_id: 'cld-1', id: 'usr-1' assert_equal '401', response.code end end context "authenticated" do setup do @request.env["HTTP_AUTHORIZATION"] = "Basic " + Base64.encode64("#{Maestrano.param('app_id')}:#{Maestrano.param('api_key')}") end should "be successful" do delete :destroy, group_id: 'cld-1', id: 'usr-1' assert_equal '200', response.code end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
maestrano-rails-0.5.0 | test/controllers/group_users_controller_test.rb |