Sha256: f8f40d43c2a61a3d1ec1b22d9f11790c8fe6e31e4b97bc8466dab7a1abbeffb6
Contents?: true
Size: 494 Bytes
Versions: 75
Compression:
Stored size: 494 Bytes
Contents
require 'spec_helper' describe Saucy::Layouts do it "allows a layout to be assigned" do subject.accounts.index = "custom" subject.accounts.index.should == "custom" end it "defaults to the saucy layout" do subject.accounts.index.should == "saucy" end it "selects a layout for a controller" do controller = AccountsController.new controller.stubs(:action_name => 'index') block = subject.class.to_proc block.call(controller).should == 'saucy' end end
Version data entries
75 entries across 75 versions & 2 rubygems