Sha256: 8787c6e39e23498c5eb5f4065849236df65e07f8ae7ab7e774570b3886542cdb
Contents?: true
Size: 925 Bytes
Versions: 14
Compression:
Stored size: 925 Bytes
Contents
require 'test_helper' module ResqueWeb class OverviewControllerTest < ActionController::TestCase include ControllerTestHelpers setup do @routes = Engine.routes end describe "GET /" do describe "when HTTP Basic Authentication is enabled" do describe "and the currect username and password are supplied " do it "should grant me access" do visit(:show) assert_response :ok end end describe "and the username and password are not supplied" do it "should deny me access" do visit(:show, {}, :auth => false) assert_response :unauthorized end end end describe "when HTTP Basic Authentication is disabled" do it "should grant me access" do visit(:show, {}, :auth => :disabled) assert_response :ok end end end end end
Version data entries
14 entries across 14 versions & 5 rubygems