mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-02 22:38:51 +08:00
14 lines
359 B
Ruby
14 lines
359 B
Ruby
# frozen_string_literal: true
|
|
|
|
describe Jobs::CreateGithubLinkback do
|
|
before do
|
|
enable_current_plugin
|
|
SiteSetting.github_linkback_enabled = true
|
|
end
|
|
|
|
it "shouldn't raise error if post not found" do
|
|
post = Fabricate(:post)
|
|
post.destroy!
|
|
expect { Jobs::CreateGithubLinkback.new.execute(post_id: post.id) }.not_to raise_error
|
|
end
|
|
end
|