tiny 0.2.4 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -41,7 +41,7 @@ module Tiny
41
41
  end
42
42
 
43
43
  def void_tag?
44
- HTML.void_tags.include? tag_name
44
+ HTML.void_tags.include? tag_name.to_s
45
45
  end
46
46
  end
47
47
  end
@@ -1,3 +1,3 @@
1
1
  module Tiny
2
- VERSION = "0.2.4"
2
+ VERSION = "0.2.5"
3
3
  end
@@ -226,6 +226,7 @@ describe 'markup helpers' do
226
226
  describe tag_name do
227
227
  it 'sould autoclose' do
228
228
  tag(tag_name).should == "<#{tag_name} />"
229
+ tag(tag_name.to_sym).should == "<#{tag_name} />"
229
230
  end
230
231
 
231
232
  it 'should omit content' do
@@ -253,6 +254,7 @@ describe 'markup helpers' do
253
254
  Tiny::HTML.content_tags.each do |tag_name|
254
255
  it "should not autoclose #{tag_name} if not empty" do
255
256
  tag(tag_name).should == "<#{tag_name}></#{tag_name}>"
257
+ tag(tag_name.to_sym).should == "<#{tag_name}></#{tag_name}>"
256
258
  end
257
259
  end
258
260
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tiny
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: