mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
9cb8c812f2
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
15 lines
323 B
Ruby
15 lines
323 B
Ruby
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
|