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

Version Path
saucy-0.12.2 spec/layouts_spec.rb
saucy-0.12.1 spec/layouts_spec.rb
saucy-0.12.0 spec/layouts_spec.rb
saucy-0.11.5 spec/layouts_spec.rb
saucy-0.11.3 spec/layouts_spec.rb
saucy-0.11.2 spec/layouts_spec.rb
saucy-0.10.7 spec/layouts_spec.rb
saucy-0.10.6 spec/layouts_spec.rb
saasy-0.0.2.alpha3 spec/layouts_spec.rb
saasy-0.0.2.alpha2 spec/layouts_spec.rb
saasy-0.0.2.alpha1 spec/layouts_spec.rb
saucy-0.10.5 spec/layouts_spec.rb
saucy-0.10.4 spec/layouts_spec.rb
saucy-0.10.3 spec/layouts_spec.rb
saucy-0.10.2 spec/layouts_spec.rb
saucy-0.10.1 spec/layouts_spec.rb
saucy-0.10.0 spec/layouts_spec.rb
saucy-0.9.1 spec/layouts_spec.rb
saucy-0.9.0 spec/layouts_spec.rb
saucy-0.8.5 spec/layouts_spec.rb