spec/rack/livereload_spec.rb in rack-livereload-0.3.2 vs spec/rack/livereload_spec.rb in rack-livereload-0.3.3

- old
+ new

@@ -133,13 +133,24 @@ end end context 'ignored' do let(:options) { { :ignore => [ %r{file} ] } } - let(:env) { { 'PATH_INFO' => 'this/file' } } - it 'should have no change' do - body.should_not include('script') + context 'not root' do + let(:env) { { 'PATH_INFO' => '/this/file' } } + + it 'should have no change' do + body.should_not include('script') + end + end + + context 'root' do + let(:env) { { 'PATH_INFO' => '/' } } + + it 'should have script' do + body.should include('script') + end end end end context '/__rack/livereload.js' do