Skip to content

Commit 57954a7

Browse files
author
Michael Bleigh
committed
Suppress while running specs.
1 parent 44008e1 commit 57954a7

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

lib/grape/middleware/auth/oauth2.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,12 @@ def verify_token(token)
6060
end
6161

6262
def error_out(status, error)
63-
throw :error, {
63+
throw :error,
6464
:message => error,
6565
:status => status,
6666
:headers => {
6767
'WWW-Authenticate' => "OAuth realm='#{options[:realm]}', error='#{error}'"
6868
}
69-
}
7069
end
7170
end
7271
end

spec/spec_helper.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
$LOAD_PATH.unshift(File.dirname(__FILE__))
22
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
33

4+
$stdout = StringIO.new
5+
46
require 'grape'
57

68
require 'rubygems'

0 commit comments

Comments
 (0)