Sha256: 0b719ee9fb9dd1e8ae6d107556d6fa54c73112e0446620fa0bc26cb3bb339cbe
Contents?: true
Size: 487 Bytes
Versions: 33
Compression:
Stored size: 487 Bytes
Contents
require 'spec_helper' describe Admin::BaseController, "routes" do it { should route(:get, "/admin").to(:action => :show) } end describe Admin::BaseController, "get show without http auth" do before { get :show } it { should respond_with(:unauthorized) } end describe Admin::BaseController, "get show with http auth" do before do http_basic_auth_sign_in 'admin', 'admin' get :show end it { should respond_with(:success) } it { should render_template(:show) } end
Version data entries
33 entries across 33 versions & 1 rubygems