Sha256: dcb7cd0dd47357cc918a5e211dee66d568b83150fb6401e1321e5d475ffd633c

Contents?: true

Size: 792 Bytes

Versions: 36

Compression:

Stored size: 792 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

  describe "GET to /admin/extensions" do
    before :each do
      get :index
    end

    it "should be successful" do
      response.should be_success
    end

    it "should render the index template" do
      response.should render_template("index")
    end

    it "should list all extensions" do
      assigns[:extensions].sort_by(&:name).should == Radiant::Extension.descendants.sort_by(&:name)
    end

    it "should pre-set the template name" do
      assigns[:template_name].should == 'index'
    end
  end
end

Version data entries

36 entries across 36 versions & 4 rubygems

Version Path
radiant-1.1.4 spec/controllers/admin/extensions_controller_spec.rb
radiant-1.1.3 spec/controllers/admin/extensions_controller_spec.rb
radiant-1.1.2 spec/controllers/admin/extensions_controller_spec.rb
radiant-1.1.1 spec/controllers/admin/extensions_controller_spec.rb
radiant-1.1.0 spec/controllers/admin/extensions_controller_spec.rb
radiant-1.1.0.rc1 spec/controllers/admin/extensions_controller_spec.rb
radiant-1.1.0.beta spec/controllers/admin/extensions_controller_spec.rb
radiant-1.0.1 spec/controllers/admin/extensions_controller_spec.rb
radiant-1.1.0.alpha spec/controllers/admin/extensions_controller_spec.rb
radiant-1.0.0 spec/controllers/admin/extensions_controller_spec.rb
radiant-1.0.0.rc5 spec/controllers/admin/extensions_controller_spec.rb
radiant-1.0.0.rc4 spec/controllers/admin/extensions_controller_spec.rb
radiant-1.0.0.rc3 spec/controllers/admin/extensions_controller_spec.rb
radiant-1.0.0.rc2 spec/controllers/admin/extensions_controller_spec.rb
radiant-1.0.0.rc1 spec/controllers/admin/extensions_controller_spec.rb
radiant-rails3-0.1 spec/controllers/admin/extensions_controller_spec.rb
radiantcms-couchrest_model-0.2.4 spec/controllers/admin/extensions_controller_spec.rb
radiantcms-couchrest_model-0.2.2 spec/controllers/admin/extensions_controller_spec.rb
radiantcms-couchrest_model-0.2.1 spec/controllers/admin/extensions_controller_spec.rb
radiantcms-couchrest_model-0.2 spec/controllers/admin/extensions_controller_spec.rb