Sha256: 49a7f4e1c4f6dbed546088f5fe02ffdb6b1dec7972ceeb9f8c9ea193e51e9fda

Contents?: true

Size: 583 Bytes

Versions: 11

Compression:

Stored size: 583 Bytes

Contents

require 'spec_helper'

module Alchemy
  describe Admin::LayoutpagesController do

    before(:each) do
      sign_in(admin_user)
    end

    describe "#index" do
      it "should assign @locked_pages" do
        get :index
        expect(assigns(:locked_pages)).to eq([])
      end

      it "should assign @layout_root" do
        get :index
        expect(assigns(:layout_root)).to be_a(Page)
      end

      it "should assign @languages" do
        Language.stub!(:all).and_return([])
        get :index
        expect(assigns(:languages)).to eq([])
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
alchemy_cms-2.9.1 spec/controllers/admin/layoutpages_controller_spec.rb
alchemy_cms-2.9.0 spec/controllers/admin/layoutpages_controller_spec.rb
alchemy_cms-2.8.3 spec/controllers/admin/layoutpages_controller_spec.rb
alchemy_cms-2.7.5 spec/controllers/admin/layoutpages_controller_spec.rb
alchemy_cms-2.7.4 spec/controllers/admin/layoutpages_controller_spec.rb
alchemy_cms-2.8.2 spec/controllers/admin/layoutpages_controller_spec.rb
alchemy_cms-2.8.1 spec/controllers/admin/layoutpages_controller_spec.rb
alchemy_cms-2.7.3 spec/controllers/admin/layoutpages_controller_spec.rb
alchemy_cms-2.7.2 spec/controllers/admin/layoutpages_controller_spec.rb
alchemy_cms-2.7.1 spec/controllers/admin/layoutpages_controller_spec.rb
alchemy_cms-2.7.0 spec/controllers/admin/layoutpages_controller_spec.rb