Skip to content

Commit

Permalink
Fix paper specs
Browse files Browse the repository at this point in the history
  • Loading branch information
xuanxu committed Apr 5, 2024
1 parent 3247337 commit 73e531a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions spec/models/paper_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -260,17 +260,17 @@
it "should know how to generate a PDF URL for Google Scholar" do
paper = create(:accepted_paper)

expect(paper.seo_url).to eq('http://joss.theoj.org/papers/10.21105/joss.00000')
expect(paper.seo_pdf_url).to eq('http://joss.theoj.org/papers/10.21105/joss.00000.pdf')
expect(paper.seo_url).to eq('https://proceedings.juliacon.org/papers/10.21105/jcon.00000')
expect(paper.seo_pdf_url).to eq('https://proceedings.juliacon.org/papers/10.21105/jcon.00000.pdf')
end
end

context "when not yet accepted" do
it "should know how to generate a PDF URL for Google Scholar" do
paper = create(:under_review_paper)

expect(paper.seo_url).to eq('http://joss.theoj.org/papers/48d24b0158528e85ac7706aecd8cddc4')
expect(paper.seo_pdf_url).to eq('http://joss.theoj.org/papers/48d24b0158528e85ac7706aecd8cddc4.pdf')
expect(paper.seo_url).to eq('https://proceedings.juliacon.org/papers/48d24b0158528e85ac7706aecd8cddc4')
expect(paper.seo_pdf_url).to eq('https://proceedings.juliacon.org/papers/48d24b0158528e85ac7706aecd8cddc4.pdf')
end
end

Expand Down Expand Up @@ -444,7 +444,7 @@
is_expected.to match /#{Rails.application.settings['reviewers_lookup_url']}/
end

it { is_expected.to match "Currently, there isn't a JOSS editor assigned" }
it { is_expected.to match "Currently, there isn't a JCON editor assigned" }
end
end

Expand Down

0 comments on commit 73e531a

Please sign in to comment.