Sha256: ec0b6cb8185f3fc6901e7f848632e7b83b37e1ad6e1f7fa0ab807da59676b103
Contents?: true
Size: 557 Bytes
Versions: 4
Compression:
Stored size: 557 Bytes
Contents
require 'test_helper' class HelpersTest < StrongPresenter::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_presenters presenter = StrongPresenter::Presenter.new(Object.new) assert_same presenter.helpers, helpers end end
Version data entries
4 entries across 4 versions & 1 rubygems