Sha256: 3efbb5daa53c7e536b74b626f1a718a0508b48702ccd5738007f1da47cb6c79e

Contents?: true

Size: 644 Bytes

Versions: 3

Compression:

Stored size: 644 Bytes

Contents

require File.dirname(__FILE__) + '/../test_helper'

class TagHelperTest < ActionView::TestCase
  def test_should_allow_no_options_to_be_specified
    assert_equal '<br />', tag('br')
  end
  
  def test_should_allow_options_to_be_specified
    assert_equal '<input class="text" disabled="disabled" type="text" />', tag('input', {:type => 'text', :disabled => true})
  end
  
  def test_should_allow_open_to_be_specified
    assert_equal '<br>', tag('br', nil, true)
  end
  
  def test_should_allow_escape_to_be_specified
    assert_equal '<img src="open &amp; shut.png" />', tag('img', {:src => 'open &amp; shut.png'}, false, false)
  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
pluginaweek-styled_inputs-0.1.1 test/helpers/tag_helper_test.rb
styled_inputs-0.1.2 test/helpers/tag_helper_test.rb
styled_inputs-0.1.1 test/helpers/tag_helper_test.rb