Sha256: 1c846f8cb452260f318bb05ba09927891c5490aad566712b1d54bab84726f01e

Contents?: true

Size: 496 Bytes

Versions: 3

Compression:

Stored size: 496 Bytes

Contents

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

describe Admin::ExtensionsController do
  dataset :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

3 entries across 3 versions & 1 rubygems

Version Path
radiant-0.7.2 spec/controllers/admin/extensions_controller_spec.rb
radiant-0.7.0 spec/controllers/admin/extensions_controller_spec.rb
radiant-0.7.1 spec/controllers/admin/extensions_controller_spec.rb