Sha256: defb28d1a815255542e491db4d6dd21717e3b34065f98ea974abd2a449424ef0

Contents?: true

Size: 553 Bytes

Versions: 21

Compression:

Stored size: 553 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
        get :index
        expect(assigns(:languages).first).to be_a(Language)
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
alchemy_cms-3.1.3 spec/controllers/admin/layoutpages_controller_spec.rb
alchemy_cms-3.1.1 spec/controllers/admin/layoutpages_controller_spec.rb
alchemy_cms-3.0.4 spec/controllers/admin/layoutpages_controller_spec.rb
alchemy_cms-3.1.0 spec/controllers/admin/layoutpages_controller_spec.rb
alchemy_cms-3.1.0.rc3 spec/controllers/admin/layoutpages_controller_spec.rb
alchemy_cms-3.1.0.rc2 spec/controllers/admin/layoutpages_controller_spec.rb
alchemy_cms-3.1.0.rc1 spec/controllers/admin/layoutpages_controller_spec.rb
alchemy_cms-3.1.0.beta6 spec/controllers/admin/layoutpages_controller_spec.rb
alchemy_cms-3.1.0.beta5 spec/controllers/admin/layoutpages_controller_spec.rb
alchemy_cms-3.1.0.beta4 spec/controllers/admin/layoutpages_controller_spec.rb
alchemy_cms-3.0.3 spec/controllers/admin/layoutpages_controller_spec.rb
alchemy_cms-3.1.0.beta3 spec/controllers/admin/layoutpages_controller_spec.rb
alchemy_cms-3.1.0.beta2 spec/controllers/admin/layoutpages_controller_spec.rb
alchemy_cms-3.1.0.beta1 spec/controllers/admin/layoutpages_controller_spec.rb
alchemy_cms-3.0.2 spec/controllers/admin/layoutpages_controller_spec.rb
alchemy_cms-3.0.1 spec/controllers/admin/layoutpages_controller_spec.rb
alchemy_cms-3.0.0 spec/controllers/admin/layoutpages_controller_spec.rb
alchemy_cms-3.0.0.rc8 spec/controllers/admin/layoutpages_controller_spec.rb
alchemy_cms-3.0.0.rc7 spec/controllers/admin/layoutpages_controller_spec.rb
alchemy_cms-3.0.0.rc6 spec/controllers/admin/layoutpages_controller_spec.rb