1
0
mirror of https://github.com/danbee/micropub.git synced 2025-03-04 08:59:13 +00:00

Fix endpoint stub

This commit is contained in:
Daniel Barber 2022-08-19 19:07:28 -05:00
parent ac14f01af2
commit cf247ab8dc

View File

@ -3,8 +3,7 @@ require "request_helper"
describe "auth" do
before(:each) do
@auth_token = "123abc"
endpoints = mock("Indieauth::Endpoints")
endpoints.stubs(:token_endpoint)
endpoints = { token_endpoint: "" }
Indieauth::Endpoints.stubs(:new).returns endpoints
Indieauth::Token.any_instance.stubs(:validate).returns(false)
Indieauth::Token.any_instance.stubs(:validate).