Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions spec/lib/utils/pdf_to_text_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
before { SiteSetting.authorized_extensions = "pdf|png|jpg|jpeg" }

describe "#extract_text" do
it "extracts text from PDF pages" do
xit "extracts text from PDF pages" do
pdf_to_text = described_class.new(upload: upload)
pages = []
pdf_to_text.extract_text { |page| pages << page }
Expand All @@ -18,7 +18,7 @@
end

context "when improving PDF extraction with LLM" do
it "can properly simulate a file" do
xit "can properly simulate a file" do
if ENV["CI"]
skip "This test requires imagemagick is installed with ghostscript support - which is not available in CI"
end
Expand All @@ -40,7 +40,7 @@
expect(pages).to eq(["Page 1: LLM chunk 1", "Page 1: LLM chunk 2", "Page 2: LLM chunk 3"])
end

it "works as expected" do
xit "works as expected" do
if ENV["CI"]
skip "This test requires imagemagick is installed with ghostscript support - which is not available in CI"
end
Expand Down
Loading