Sha256: d73925a1f1a9bd527395d42b53fa65138e4fea8f1daf43ec1ee597100f7d4f67
Contents?: true
Size: 1.23 KB
Versions: 3
Compression:
Stored size: 1.23 KB
Contents
require 'spec_helper' describe(Jekyll) do let(:overrides) do { "source" => source_dir, "destination" => dest_dir, "url" => "http://example.org", } end let(:config) do Jekyll.configuration(overrides) end let(:site) { Jekyll::Site.new(config) } let(:contents) { File.read(dest_dir("index.html")) } before(:each) do site.process end it "creates a figure element" do expect(contents).to match /<figure>\n <p>Content<\/p>\n \n<\/figure>/ end it "creates a figure element with image content" do expect(contents).to match /<figure>\n <img src="#" alt="Image" \/>\n \n<\/figure>/ end it "creates a figure element with caption" do expect(contents).to match /<figure>\n <p>Content<\/p>\n \n <figcaption>A caption<\/figcaption>\n<\/figure>/ end it "creates a figure element with caption and class name" do expect(contents).to match /<figure>\n <p><strong>Markdown<\/strong> content<\/p>\n \n <figcaption><em>Markdown<\/em> content<\/figcaption>\n<\/figure>/ end it "creates a figure element with liquid variable for caption" do expect(contents).to match /<figure>\n <p>Content<\/p>\n \n <figcaption>Page data<\/figcaption>\n<\/figure>/ end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
jekyll-figure-0.0.3 | spec/jekyll-figure_spec.rb |
jekyll-figure-0.0.2 | spec/jekyll-figure_spec.rb |
jekyll-figure-0.0.1 | spec/jekyll-figure_spec.rb |