Sha256: 0f252e5b12352c5316d8b3573cc5042fd7e0e210d6a14553ecf3745c0cb23fbd
Contents?: true
Size: 779 Bytes
Versions: 4
Compression:
Stored size: 779 Bytes
Contents
require 'spec_helper' class Alchemy::Config; end describe Alchemy::Admin::LanguagesController do before(:each) do activate_authlogic Alchemy::UserSession.create Factory(:admin_user) end describe "new" do context "when default_language.page_layout is set" do it "should use it as page_layout-default for the new language" do Alchemy::Config.should_receive(:get).with(:default_language) { {'page_layout' => "new_standard"} } get :new assigns(:language).page_layout.should eql("new_standard") end end context "when default_language or page_layout aren't configured" do it "should fallback to 'intro'" do get :new assigns(:language).page_layout.should eql("intro") end end end end
Version data entries
4 entries across 4 versions & 1 rubygems