spec/integration/server/liquid_spec.rb in locomotivecms_wagon-1.3.3 vs spec/integration/server/liquid_spec.rb in locomotivecms_wagon-1.4.0

- old
+ new

@@ -11,11 +11,11 @@ def app run_server end it "converts {{ page.templatized? }} => true on templatized page" do - get '/songs/song-1' + get '/songs/song-number-1' last_response.body.should =~ /templatized=.true./ end it "converts {{ page.templatized? }} => false on regular page" do get '/index' @@ -26,16 +26,16 @@ get '/music' last_response.body.should =~ /listed=.true./ end it "provides an access to page's content_type collection" do - get '/songs/song-1' + get '/songs/song-number-1' last_response.body.should =~ /content_type_size=.8./ end it "provides count alias on collections" do - get '/songs/song-1' + get '/songs/song-number-1' last_response.body.should =~ /content_type_count=.8./ end describe '.link_to' do @@ -54,25 +54,25 @@ last_response.body.should =~ /More about us: <a href="\/about-us">Who are we \?<\/a>/ end it "writes a link to a templatized page" do get '/events' - last_response.body.should =~ /<a href="\/songs\/song-1">Song #1<\/a>/ + last_response.body.should =~ /<a href="\/songs\/song-number-1">Song #1<\/a>/ end it "writes a link to a templatized page with a different handle" do get '/events' - last_response.body.should =~ /<a href="\/songs\/song-8">Song #8<\/a>/ + last_response.body.should =~ /<a href="\/songs\/song-number-8">Song #8<\/a>/ end end describe 'scope & assigns' do it "evaluates collection when called all inside of scope" do get '/music' last_response.body.should =~ /<p class=.scoped_song.>Song #3/ - last_response.body.should =~ /<p class=.scoped_song_link.>\s+<a href=.\/songs\/song-3.>Song #3/m + last_response.body.should =~ /<p class=.scoped_song_link.>\s+<a href=.\/songs\/song-number-3.>Song #3/m end it "size of evaluated unscoped collection equal to unevaluated one" do get '/music' last_response.body.should =~ /class=.collection_equality.>8=8/ \ No newline at end of file