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