aboutsummaryrefslogblamecommitdiffstats
path: root/actionpack/test/template/capture_helper_test.rb
blob: 2017a18806fd0b12ef40e0c2689c7f177c5278e6 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15














                                               
require 'abstract_unit'

class CaptureHelperTest < ActionView::TestCase
  def setup
    super
    @_content_for = Hash.new {|h,k| h[k] = "" }
  end

  def test_content_for
    assert ! content_for?(:title)
    content_for :title, 'title'
    assert content_for?(:title)
    assert ! content_for?(:something_else)
  end
end