Sha256: af23067b4695283d301797926c7dfc76fbe27bffc14f67b34aa8498aadda2e81

Contents?: true

Size: 495 Bytes

Versions: 6

Compression:

Stored size: 495 Bytes

Contents

require File.dirname(__FILE__) + "/../../spec_helper"

describe Admin::ExtensionController do
  scenario :users
  
  before :each do
    login_as :admin
  end
  
  it "should require login for all actions" do
    logout
    lambda { get :index }.should require_login
  end
  
  it "should list all extensions" do
    get :index
    response.should be_success
    response.should render_template("index")
    assigns[:extensions].should == Radiant::Extension.descendants.sort_by(&:name)
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
radiant-0.6.5.1 spec/controllers/admin/extension_controller_spec.rb
radiant-0.6.5 spec/controllers/admin/extension_controller_spec.rb
radiant-0.6.7 spec/controllers/admin/extension_controller_spec.rb
radiant-0.6.6 spec/controllers/admin/extension_controller_spec.rb
radiant-0.6.8 spec/controllers/admin/extension_controller_spec.rb
radiant-0.6.9 spec/controllers/admin/extension_controller_spec.rb