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

Version Path
saucy-0.12.2 spec/controllers/admin/base_controller_spec.rb
saucy-0.12.1 spec/controllers/admin/base_controller_spec.rb
saucy-0.12.0 spec/controllers/admin/base_controller_spec.rb
saucy-0.11.5 spec/controllers/admin/base_controller_spec.rb
saucy-0.11.3 spec/controllers/admin/base_controller_spec.rb
saucy-0.11.2 spec/controllers/admin/base_controller_spec.rb
saucy-0.10.7 spec/controllers/admin/base_controller_spec.rb
saucy-0.10.6 spec/controllers/admin/base_controller_spec.rb
saucy-0.10.5 spec/controllers/admin/base_controller_spec.rb
saucy-0.10.4 spec/controllers/admin/base_controller_spec.rb
saucy-0.10.3 spec/controllers/admin/base_controller_spec.rb
saucy-0.10.2 spec/controllers/admin/base_controller_spec.rb
saucy-0.10.1 spec/controllers/admin/base_controller_spec.rb