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.16.1 spec/controllers/admin/base_controller_spec.rb
saucy-0.16.0 spec/controllers/admin/base_controller_spec.rb
saucy-0.15.2 spec/controllers/admin/base_controller_spec.rb
saucy-0.15.1 spec/controllers/admin/base_controller_spec.rb
saucy-0.15.0 spec/controllers/admin/base_controller_spec.rb
saucy-0.14.5 spec/controllers/admin/base_controller_spec.rb
saucy-0.14.3 spec/controllers/admin/base_controller_spec.rb
saucy-0.10.10 spec/controllers/admin/base_controller_spec.rb
saucy-0.14.2 spec/controllers/admin/base_controller_spec.rb
saucy-0.14.1 spec/controllers/admin/base_controller_spec.rb
saucy-0.14.0 spec/controllers/admin/base_controller_spec.rb
saucy-0.13.3 spec/controllers/admin/base_controller_spec.rb
saucy-0.13.2 spec/controllers/admin/base_controller_spec.rb
saucy-0.10.9 spec/controllers/admin/base_controller_spec.rb
saucy-0.10.8 spec/controllers/admin/base_controller_spec.rb
saucy-0.13.1 spec/controllers/admin/base_controller_spec.rb
saucy-0.13.0 spec/controllers/admin/base_controller_spec.rb
saucy-0.12.5 spec/controllers/admin/base_controller_spec.rb
saucy-0.12.4 spec/controllers/admin/base_controller_spec.rb
saucy-0.12.3 spec/controllers/admin/base_controller_spec.rb