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.4.8 spec/layouts_spec.rb
saucy-0.4.7 spec/layouts_spec.rb
saucy-0.4.6 spec/layouts_spec.rb
saucy-0.4.5 spec/layouts_spec.rb
saucy-0.4.4 spec/layouts_spec.rb
saucy-0.4.3 spec/layouts_spec.rb
saucy-0.4.2 spec/layouts_spec.rb
saucy-0.4.1 spec/layouts_spec.rb
saucy-0.3.4.1 spec/layouts_spec.rb
saucy-0.4.0 spec/layouts_spec.rb
saucy-0.3.4 spec/layouts_spec.rb
saucy-0.3.3 spec/layouts_spec.rb
saucy-0.3.2 spec/layouts_spec.rb
saucy-0.3.1 spec/layouts_spec.rb
saucy-0.3.0 spec/layouts_spec.rb