Sha256: 6d83b91095ece0e68954d98252f96bb8759cdd2bdc93277847d7b34914127209

Contents?: true

Size: 769 Bytes

Versions: 10

Compression:

Stored size: 769 Bytes

Contents

require 'minitest_helper'
module SlideHero
  describe Point do
    it "wraps it's text in p tags" do
      point = Point.new("I'm a tiger")
      point.compile.must_equal "<p>I'm a tiger</p>"
    end

    it "supports animations" do
      point = Point.new("Animation", animation: true)
      point.compile.must_equal '<p class="fragment ">Animation</p>'
    end

    it "supports specific animations" do
      supported_animations = %w{grow shrink roll-in fade-out 
      highlight-red highlight-green highlight-blue}
      supported_animations.each do |animation|
        point = Point.new("Animation", animation: animation)
        point.compile.must_equal "<p class=\"fragment #{animation}\">" +
          "Animation" +
          "</p>"
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
slide_hero-0.0.11 test/slide_hero/point_spec.rb
slide_hero-0.0.10 test/slide_hero/point_spec.rb
slide_hero-0.0.9 test/slide_hero/point_spec.rb
slide_hero-0.0.8 test/slide_hero/point_spec.rb
slide_hero-0.0.7 test/slide_hero/point_spec.rb
slide_hero-0.0.6 test/slide_hero/point_spec.rb
slide_hero-0.0.5 test/slide_hero/point_spec.rb
slide_hero-0.0.4 test/slide_hero/point_spec.rb
slide_hero-0.0.3 test/slide_hero/point_spec.rb
slide_hero-0.0.2 test/slide_hero/point_spec.rb