Skip to content

Commit 35eda44

Browse files
committed
fix basic auth spec failure for valid creds
1 parent 5c645ad commit 35eda44

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/grape/middleware/auth/basic_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ def app
99
b.use(Grape::Middleware::Auth::Basic) do |u,p|
1010
u && p && u == p
1111
end
12-
b.run lambda{|env| [200, {}, "Hello there."]}
12+
b.run lambda{|env| [200, {}, ["Hello there."]]}
1313
end
1414
end
1515

@@ -28,4 +28,4 @@ def app
2828
get '/whatever', {}, 'HTTP_AUTHORIZATION' => encode_basic('admin','wrong')
2929
last_response.status.should == 401
3030
end
31-
end
31+
end

0 commit comments

Comments
 (0)