Skip to content

Commit

Permalink
fix broken tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Floppy committed Nov 26, 2023
1 parent 896a646 commit 7325506
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions spec/manifesto_spec.rb
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
describe "manifesto" do

it "should be included from submodule" do
expect(File.exists?("_site/manifesto/index.html")).to eq true
expect(File.exist?("_site/manifesto/index.html")).to eq true
end

it "should automatically create dropdown nav for policy pages" do
File.open("_site/index.html") do |file|
html = file.read
expect(html).to have_tag 'a', text: "Communications", with: {href: "/manifesto/communications"}
end
end

end
end
8 changes: 4 additions & 4 deletions spec/post_spec.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
describe "posts" do

it "should have a url under /news with the date" do
expect(File.exists?("_site/news/2016/02/20/euref-yes-to-europe.html")).to eq true
expect(File.exist?("_site/news/2016/02/20/euref-yes-to-europe.html")).to eq true
end

it "should list multiple author names" do
File.open("_site/news/2016/02/20/euref-yes-to-europe.html") do |file|
html = file.read
Expand All @@ -19,4 +19,4 @@
end
end

end
end

0 comments on commit 7325506

Please sign in to comment.