spec/oauth_spec.rb in warden-oauthed-0.0.1 vs spec/oauth_spec.rb in warden-oauthed-0.0.2

- old
+ new

@@ -1,8 +1,12 @@ require File.dirname(__FILE__) + '/spec_helper' describe 'Warden::Oauthed' do it 'requesting an url that requires authentication redirects to github' do + ENV['OAUTH_BASE_URL'] = 'http://localhost:3000' + ENV['APPLICATION_SCOPES_REQUESTED'] = 'public' + ENV['APPLICATION_CLIENT_ID'] = 'fd6df6f74658a9202d401aaba38223a7f79e7572926ce845e5268f5171e5b2d5' + ENV['APPLICATION_CLIENT_SECRET'] = 'afee0e20322e5d73dff82f29baf5989afd3422557056129aad29d974e56df677' response = get '/' uri = Addressable::URI.parse(response.headers['Location']) uri.scheme.should eql('http')