Sha256: 4a66c1163a0bdb8add8c5a8458f8b470d15acb09cbf1ef26a090f209f0f5af84

Contents?: true

Size: 351 Bytes

Versions: 18

Compression:

Stored size: 351 Bytes

Contents

# frozen_string_literal: true

require 'helper'

class Nanoc::Filters::RubyPantsTest < Nanoc::TestCase
  def test_filter
    if_have 'rubypants' do
      # Get filter
      filter = ::Nanoc::Filters::RubyPants.new

      # Run filter
      result = filter.setup_and_run('Wait---what?')
      assert_equal('Wait&#8212;what?', result)
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
nanoc-4.8.12 test/filters/test_rubypants.rb
nanoc-4.8.11 test/filters/test_rubypants.rb
nanoc-4.8.10 test/filters/test_rubypants.rb
nanoc-4.8.9 test/filters/test_rubypants.rb
nanoc-4.8.8 test/filters/test_rubypants.rb
nanoc-4.8.7 test/filters/test_rubypants.rb
nanoc-4.8.6 test/filters/test_rubypants.rb
nanoc-4.8.5 test/filters/test_rubypants.rb
nanoc-4.8.4 test/filters/test_rubypants.rb
nanoc-4.8.3 test/filters/test_rubypants.rb
nanoc-4.8.2 test/filters/test_rubypants.rb
nanoc-4.8.1 test/filters/test_rubypants.rb
nanoc-4.8.0 test/filters/test_rubypants.rb
nanoc-4.7.14 test/filters/test_rubypants.rb
nanoc-4.7.13 test/filters/test_rubypants.rb
nanoc-4.7.12 test/filters/test_rubypants.rb
nanoc-4.7.11 test/filters/test_rubypants.rb
nanoc-4.7.10 test/filters/test_rubypants.rb