discourse/spec/lib/discourse_webauthn/discourse_webauthn_spec.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
421 B
Ruby
Raw Normal View History

# frozen_string_literal: true
RSpec.describe DiscourseWebauthn do
describe "#origin" do
it "returns the current hostname" do
expect(DiscourseWebauthn.origin).to eq("http://test.localhost")
end
context "with subfolder" do
it "does not append /forum to origin" do
set_subfolder "/forum"
expect(DiscourseWebauthn.origin).to eq("http://test.localhost")
end
end
end
end