require 'holder_rails' require 'minitest/autorun' class HolderRailsTest < ActionView::TestCase include HolderRails::Helpers test "size" do assert_dom_equal '', holder_tag(100) assert_dom_equal '', holder_tag('200x300') assert_dom_equal '', holder_tag('100%x75') end test "text" do assert_dom_equal '', holder_tag('200x300', 'Lorem ipsum') end test "theme" do assert_dom_equal '', holder_tag('200x300', 'Lorem ipsum', 'social') end test "html_options" do assert_dom_equal '', holder_tag('500x800', 'Example text', 'gray', id: 'new', class: 'special') end test "holder_options" do assert_dom_equal '', holder_tag('500x800', 'Example text', 'gray', { id: 'new', class: 'special' }, { font: 'Helvetica' }) end end