Sha256: 136332c6c35699c8142185c44cfc43276db77de8bf7899420054b49368def5ca

Contents?: true

Size: 369 Bytes

Versions: 6

Compression:

Stored size: 369 Bytes

Contents

require "spec_helper"

describe Nanoc::Toolbox::Filters::AddSections do
  before(:each) do
    @filter = described_class.new
  end
  
  describe ".run" do
    it "minifies javascript" do
      content = "<h1>A Title<h1/><h2>A Second Title<h2/>"
      result = @filter.run(content)
      result.should_not eq content
      result.should =~ /"section"/
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
nanoc-toolbox-0.2.1 spec/filters/add_sections_spec.rb
nanoc-toolbox-0.2.0 spec/filters/add_sections_spec.rb
nanoc-toolbox-0.1.3 spec/filters/add_sections_spec.rb
nanoc-toolbox-0.1.2 spec/filters/add_sections_spec.rb
nanoc-toolbox-0.1.1 spec/filters/add_sections_spec.rb
nanoc-toolbox-0.1.0 spec/filters/add_sections_spec.rb