Sha256: 78278285e2b1d4daa0846da6bafe16d1843fd99ae2bd907a0b367c7c5e94ba4d

Contents?: true

Size: 398 Bytes

Versions: 5

Compression:

Stored size: 398 Bytes

Contents

require 'spec/helper'

describe "Nagoro::Listener::Base" do
  def base(string)
    nagoro = Nagoro::Template[:Base]
    nagoro.pipeline(string)
  end

  should 'not fail on backslash' do
    base('#{}').should == '#{}'
  end

  it 'should not stumble over HTML entities' do
    %w[gt lt quot amp nbsp uuml].each do |entity|
      str = "&#{entity};"
      base(str).should == str
    end
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
manveru-nagoro-2009.01.29 spec/nagoro/listener/base.rb
manveru-nagoro-2009.03.21 spec/nagoro/listener/base.rb
manveru-nagoro-2009.03.28 spec/nagoro/listener/base.rb
manveru-nagoro-2009.05 spec/nagoro/listener/base.rb
nagoro-2009.05 spec/nagoro/listener/base.rb