Skip to content
Myr

Added specs for .back

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

authored by visionmedia · committed by visionmedia · parent edbdcb3 · Browse files · 1 file+14 added−4 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+14 added−4 removed

  • tests:+14 added−4 removed

1 file+14 added−4 removed

modified:spec/spec.core.js+14 added-4 removed
156 unmodified lines
157 response.status.should.eql 302158 end159 end160 161 describe 'RedirectHelpers'161 describe '.home'162 it 'should redirect home'163 get('foo', function(){ redirect(home) })164 get('foo').headers.location.should.eql '/'162 describe '.home'163 it 'should redirect home'164 get('foo', function(){ redirect(home) })165 get('foo').headers.location.should.eql '/'166 end167 end168 169 describe '.back'170 it 'should redirect to the reeferrer'171 request = mockRequest({ headers : [['Referer', 'http://vision-media.ca']] })172 get('foo', function(){ redirect(back) })173 get('foo', { request : request }).headers.location.should.eql 'http://vision-media.ca'174 end175 end176 end177 178 describe 'BodyDecoder'179 it 'should parse urlencoded bodies'
49 unmodified lines