mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Prevent 'rack.input' missing error.
This commit is contained in:
@@ -16,6 +16,11 @@ describe Auth::DefaultCurrentUserProvider do
|
||||
TestProvider.new(env)
|
||||
end
|
||||
|
||||
it "can be used to pretend that a user doesn't exist" do
|
||||
provider = TestProvider.new({})
|
||||
expect(provider.current_user).to eq(nil)
|
||||
end
|
||||
|
||||
context "server api" do
|
||||
|
||||
it "raises errors for incorrect api_key" do
|
||||
|
||||
Reference in New Issue
Block a user