Skip to content
Myr

Fixed some specs

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by visionmedia · committed by visionmedia · parent 204cea8 · Browse files · 1 file+5 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+5 added−1 removed

  • tests:+5 added−1 removed

1 file+5 added−1 removed

modified:spec/spec.core.js+5 added-1 removed
157 unmodified lines
158 end159 end160 161 describe 'RedirectHelpers'162 before_each163 Express.response.headers = {}164 end165 166 describe '.home'167 it 'should redirect home'168 get('foo', function(){ redirect(home) })169 get('foo').headers.location.should.eql '/'
8 unmodified lines
178 describe '.back'179 it 'should redirect to the referrer'180 uri = 'http://vision-media.ca'181 request = mockRequest({ headers : [['Referer', uri]] })178 get('foo', function(){ p(back); redirect(back) })182 get('foo', function(){ redirect(back) })183 get('foo', { request : request }).headers.location.should.eql uri184 Express.back.should.eql uri185 end186 end
53 unmodified lines