spec/app.rb in warden-github-0.0.9 vs spec/app.rb in warden-github-0.1.0
- old
+ new
@@ -30,9 +30,14 @@
get '/' do
ensure_authenticated
"Hello There, #{user.name}!"
end
+ get '/redirect_to' do
+ ensure_authenticated
+ "Hello There, #{user.name}! return_to is working!"
+ end
+
get '/auth/github/callback' do
ensure_authenticated
redirect '/'
end