Sha256: 1356d99e4f3f5a2b127a29bbdc167d4732c89f500ffd79aea3122417ee45c30c
Contents?: true
Size: 1.17 KB
Versions: 2
Compression:
Stored size: 1.17 KB
Contents
require 'spec_helper' describe("Conrefifier") do it "writes the proper page for simple substitutions" do expect(@dest.join("articles", "this-is-very-amazing", "index.html")).to exist end it "writes the proper page for compicated substitutions" do expect(@dest.join("articles", "welcome-to-github", "index.html")).to exist end it "writes the proper content for values after fetching info from a data file" do index_file = @dest.join("index.html") expect(index_file).to exist index_contents = File.read(index_file) expect(index_contents).to include("GitHub Glossary") end it "writes the proper content for keys after fetching info from a data file" do index_file = @dest.join("index.html") expect(index_file).to exist index_contents = File.read(index_file) expect(index_contents).to include("<a href=\"/categories/amazing\">Amazing</a>") end it "writes the proper content for values with Markdown" do index_file = @dest.join("articles", "this-is-strong-wow-strong", "index.html") expect(index_file).to exist index_contents = File.read(index_file) expect(index_contents).to include("<strong>wow!</strong>") end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
jekyll-conrefifier-0.1.2 | spec/conrefifier_spec.rb |
jekyll-conrefifier-0.1.1 | spec/conrefifier_spec.rb |