Sha256: 7b73e4d7fcbc423ad41ea37b35a78de9a0d554f851a8a8a1802784c767ca4e84

Contents?: true

Size: 407 Bytes

Versions: 4

Compression:

Stored size: 407 Bytes

Contents

require 'spec_helper'

describe Manageable::ApplicationHelper, "content_box" do
  it "should yield a box builder" do
    helper.manageable_content_box(:headline => "My Box") do |b|
      b.should be_instance_of(Manageable::Helpers::BoxBuilder)
    end
  end

  it "should build without a headline" do
    lambda { helper.manageable_content_box { |b| "Hello, world" } }.should_not raise_exception
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
manageable-0.1.4 spec/helpers/content_box_spec.rb
manageable-0.1.3 spec/helpers/content_box_spec.rb
manageable-0.1.2 spec/helpers/content_box_spec.rb
manageable-0.1.1 spec/helpers/content_box_spec.rb