1 require File.dirname(__FILE__) + '/../spec_helper'
3 describe LyricsHelper do
6 @song.lyrics = <<-LYRICS
7 This is a *test* of the lyrics
8 Hopefully this will get split up appropriately
10 This text should be on slide 2
13 Here comes slide three
17 it "should add hr tags in between slides" do
18 text = slides_for_song(@song)
19 text.split("<hr />").size.should == 3
22 it "should use Textile formatting in lyrics" do
23 text = slides_for_song(@song)
24 text.should include("<strong>")
27 it "should create a properly-formatted lyrics slide" do
28 result = lyric_slide("first\ntest\ntest\ntest")
30 result.split("<br />").size.should == 3
31 result.should include("<h1>first</h1>")
32 result.should include("<p>test<br />test<br />test</p>")