update specs for the last commit of the mounter component (34d24feeb8d5576a715e56f76e8a0db1ec17058f), referencing issue locomotivecms/wagon#140 and locomotivecms/wagon#141
did
committed Nov 28, 2013
commit 03057976c4d3ee3689ee0b1cd2223150044f8757
Showing 5
changed files with
12 additions
and 11 deletions
Gemfile
+1
-0
| @@ | @@ -7,6 +7,7 @@ gemspec |
| # gem 'locomotivecms-liquid', path: '../gems/liquid', require: false | |
| # gem 'locomotivecms-solid', path: '../gems/solid', require: false | |
| # gem 'locomotivecms_mounter', path: '../gems/mounter', require: false | |
| + | gem 'locomotivecms_mounter', github: 'locomotivecms/mounter', ref: '34d24feeb8', require: false |
| gem 'rb-fsevent', '~> 0.9.1' | |
| \ No newline at end of file | |
spec/fixtures/default/app/views/pages/index.liquid.haml
+1
-1
| @@ | @@ -95,6 +95,6 @@ title: Home page |
| {% include footer %} | |
| - | {% include a_complicated_one %} |
| + | {% include a_complicated-one %} |
| {% google_analytics 'UA-20661758-1' %} | |
spec/fixtures/default/app/views/pages/music.liquid.haml
+1
-1
| @@ | @@ -29,7 +29,7 @@ position: 2 |
| #is_listed{ listed: "{{ page.listed? }}" } | |
| #test_for_scope | |
| - | {% with_scope _slug: "song-3" %} |
| + | {% with_scope _slug: "song-number-3" %} |
| {% assign selected_songs = contents.songs.all %} | |
| {% endwith_scope %} | |
| {% for s in selected_songs %} | |
spec/integration/server/basic_spec.rb
+3
-3
| @@ | @@ -35,12 +35,12 @@ describe Locomotive::Wagon::Server do |
| end | |
| it 'shows a content type template ' do | |
| - | get '/songs/song-1' |
| + | get '/songs/song-number-1' |
| last_response.body.should =~ /Song #1/ | |
| end | |
| it 'renders a page under a templatized one' do | |
| - | get '/songs/song-1/band' |
| + | get '/songs/song-number-1/band' |
| last_response.body.should =~ /Song #1/ | |
| last_response.body.should =~ /Leader: Eddie/ | |
| end | |
| @@ | @@ -61,7 +61,7 @@ describe Locomotive::Wagon::Server do |
| it 'translates a page with link_to tags inside' do | |
| get '/fr/notre-musique' | |
| - | last_response.body.should =~ /<h3><a href="\/fr\/songs\/song-8">Song #8<\/a><\/h3>/ |
| + | last_response.body.should =~ /<h3><a href="\/fr\/songs\/song-number-8">Song #8<\/a><\/h3>/ |
| last_response.body.should =~ /Propulsé par/ | |
| end | |
spec/integration/server/liquid_spec.rb
+6
-6
| @@ | @@ -13,7 +13,7 @@ describe Locomotive::Wagon::Server do |
| 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 | |
| @@ | @@ -28,12 +28,12 @@ describe Locomotive::Wagon::Server do |
| 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 | |
| @@ | @@ -56,12 +56,12 @@ describe Locomotive::Wagon::Server do |
| 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 | |
| @@ | @@ -71,7 +71,7 @@ describe Locomotive::Wagon::Server 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 | |