# -*- encoding: utf-8 -*- require './spec/helper' describe Fragment do it "should replace one fragment tag" do fragment = Fragment.new("spec/test-files/fragment.html", 'spec/test-files') fragment.to_html.start_with?('
para
footer
' end it "should replace one fragment tag in markdown" do fragment = Fragment.new("spec/test-files/fragment3.html", 'spec/test-files') fragment.to_html.start_with?('abcde
") end it "should not change a file without fragment tag" do fragment = Fragment.new("spec/test-files/nothing.html", 'spec/test-files') fragment.to_html.start_with?("