Sha256: fae80eafd69f404f3779de16de8f79d164249d40787ea9833d41c0141197de36

Contents?: true

Size: 1.28 KB

Versions: 6

Compression:

Stored size: 1.28 KB

Contents

require 'minitest_helper'

module SlideHero
  describe Plugins do
    it "contains configuration values for reveal plugins" do
        Plugins.reveal[:class_list].must_equal  "{ src: 'lib/js/classList.js', condition: function() { return !document.body.classList; } }"
        Plugins.reveal[:markdown].squeeze(' ').delete!("\n").must_equal  "{ src: 'plugin/markdown/marked.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } }, { src: 'plugin/markdown/markdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } }"
        Plugins.reveal[:highlight].must_equal  "{ src: 'plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } }"
        Plugins.reveal[:zoom].must_equal  "{ src: 'plugin/zoom-js/zoom.js', async: true, condition: function() { return !!document.body.classList; } }"
        Plugins.reveal[:notes].must_equal  "{ src: 'plugin/notes/notes.js', async: true, condition: function() { return !!document.body.classList; } }"
        Plugins.reveal[:remote].must_equal  "{ src: 'plugin/remotes/remotes.js', async: true, condition: function() { return !!document.body.classList; } }"
        Plugins.reveal[:leap].must_equal "{ src: 'plugin/leap/leap.js', async: true }"
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
slide_hero-0.0.10 test/slide_hero/plugins_spec.rb
slide_hero-0.0.9 test/slide_hero/plugins_spec.rb
slide_hero-0.0.8 test/slide_hero/plugins_spec.rb
slide_hero-0.0.7 test/slide_hero/plugins_spec.rb
slide_hero-0.0.6 test/slide_hero/plugins_spec.rb
slide_hero-0.0.5 test/slide_hero/plugins_spec.rb