Sha256: 98c79467d04c8f720088a77803e0e4b66f6dfaa3b05f2383a04673e50d2752b4
Contents?: true
Size: 521 Bytes
Versions: 8
Compression:
Stored size: 521 Bytes
Contents
require "test_helper" class Admin::DashboardControllerTest < ActionController::TestCase context "When authentication is http_basic" do setup do Typus.stubs(:authentication).returns(:http_basic) end should "return a 401 message when no credentials sent" do get :show assert_response 401 end should "authenticate user" do @request.env['HTTP_AUTHORIZATION'] = 'Basic ' + Base64::encode64("admin:columbia") get :show assert_response :success end end end
Version data entries
8 entries across 8 versions & 1 rubygems