Sha256: 43c0e1fb75bd0dbf32601edc35ff9a602b3f2af20c184ac45ea506cc36edb5f7

Contents?: true

Size: 473 Bytes

Versions: 15

Compression:

Stored size: 473 Bytes

Contents

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

describe String do
  
  describe "unescape_html" do
    
    it "should convert & to &" do
      "M&M".unescape_html.should == 'M&M'
    end
    
    it "should convert ó to ó" do
      "ósmosis".unescape_html.should == 'ósmosis'
    end
    
  end
  
  describe "strip_tags" do
    
    it "should strip HTML tags" do
      "<em>Hola</em> hola".strip_tags.should == 'Hola hola'
    end
    
  end
  
end

Version data entries

15 entries across 15 versions & 3 rubygems

Version Path
langalex-imdb-0.0.8 spec/string_extensions_spec.rb
porras-imdb-0.0.2 spec/string_extensions_spec.rb
porras-imdb-0.0.3 spec/string_extensions_spec.rb
porras-imdb-0.0.4 spec/string_extensions_spec.rb
porras-imdb-0.0.6 spec/string_extensions_spec.rb
porras-imdb-0.0.7 spec/string_extensions_spec.rb
royw-imdb-0.0.19 spec/string_extensions_spec.rb
royw-imdb-0.0.20 spec/string_extensions_spec.rb
royw-imdb-0.0.21 spec/string_extensions_spec.rb
royw-imdb-0.1.0 spec/string_extensions_spec.rb
royw-imdb-0.1.1 spec/string_extensions_spec.rb
royw-imdb-0.1.2 spec/string_extensions_spec.rb
royw-imdb-0.1.3 spec/string_extensions_spec.rb
royw-imdb-0.1.4 spec/string_extensions_spec.rb
royw-imdb-0.1.5 spec/string_extensions_spec.rb