mirror of
https://github.com/opf/openproject.git
synced 2026-06-13 19:20:00 +00:00
Merge pull request #22925 from opf/fix-wiki-errors
Fix small wiki errors
This commit is contained in:
@@ -34,8 +34,8 @@ module Wikis::Adapters
|
||||
|
||||
attr_reader :provider
|
||||
|
||||
def initialize(provider)
|
||||
@provider = provider
|
||||
def initialize(model:)
|
||||
@provider = model
|
||||
end
|
||||
|
||||
def call(_input_data)
|
||||
|
||||
@@ -43,7 +43,7 @@ module Wikis
|
||||
"Syntax overview",
|
||||
"Getting help",
|
||||
"Enterprise support"
|
||||
].sample
|
||||
]
|
||||
title = titles[Random.new(input_data.identifier.hash).rand(titles.size)]
|
||||
|
||||
success(
|
||||
|
||||
+1
-1
@@ -31,7 +31,7 @@
|
||||
require "spec_helper"
|
||||
|
||||
RSpec.describe Wikis::Adapters::Providers::Internal::Queries::PageInfo do
|
||||
subject { described_class.new(provider).call(input_data) }
|
||||
subject { described_class.new(model: provider).call(input_data) }
|
||||
|
||||
let(:provider) { create(:internal_wiki_provider) }
|
||||
let(:input_data) { Wikis::Adapters::Input::PageInfo.build(identifier:).value! }
|
||||
|
||||
Reference in New Issue
Block a user