...and fix the test for that

This commit is contained in:
John Bintz 2013-03-27 17:50:58 -04:00
parent 2327695365
commit 20f03cbe7c
1 changed files with 1 additions and 1 deletions

View File

@ -157,7 +157,7 @@ describe Rack::LiveReload do
it 'should add the livereload js script tag before all other script tags' do it 'should add the livereload js script tag before all other script tags' do
body_dom.at_css("head")[:attribute].should == 'attribute' body_dom.at_css("head")[:attribute].should == 'attribute'
body_dom.at_css("script:eq(4)")[:src].should include(described_class::LIVERELOAD_JS_PATH) body_dom.at_css("script:eq(5)")[:src].should include(described_class::LIVERELOAD_JS_PATH)
body_dom.at_css("script:last-child")[:insert].should == "before" body_dom.at_css("script:last-child")[:insert].should == "before"
end end