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 "

I'm a tiger

" end it "supports animations" do point = Point.new("Animation", animation: true) point.compile.must_equal '

Animation

' 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 "

" + "Animation" + "

" end end end end