Sha256: 9d53d751ead9fa8c45f6fbe15adbf97b7fe5e299824db98200a5def039dc5c91
Contents?: true
Size: 539 Bytes
Versions: 18
Compression:
Stored size: 539 Bytes
Contents
require 'test_helper' class HelpersTest < Draper::TestCase def test_access_helpers_through_helper assert_equal "<p>Help!</p>", helper.content_tag(:p, "Help!") end def test_access_helpers_through_helpers assert_equal "<p>Help!</p>", helpers.content_tag(:p, "Help!") end def test_access_helpers_through_h assert_equal "<p>Help!</p>", h.content_tag(:p, "Help!") end def test_same_helper_object_as_decorators decorator = Draper::Decorator.new(Object.new) assert_same decorator.helpers, helpers end end
Version data entries
18 entries across 18 versions & 4 rubygems