From 7325506a86a60689712f07c3d06827903de7fc5f Mon Sep 17 00:00:00 2001 From: James Smith Date: Sun, 26 Nov 2023 17:43:34 +0000 Subject: [PATCH] fix broken tests --- spec/manifesto_spec.rb | 8 ++++---- spec/post_spec.rb | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/spec/manifesto_spec.rb b/spec/manifesto_spec.rb index 2934d6c..8a3e23e 100644 --- a/spec/manifesto_spec.rb +++ b/spec/manifesto_spec.rb @@ -1,9 +1,9 @@ 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 @@ -11,4 +11,4 @@ end end -end \ No newline at end of file +end diff --git a/spec/post_spec.rb b/spec/post_spec.rb index 789c20d..e8d580d 100644 --- a/spec/post_spec.rb +++ b/spec/post_spec.rb @@ -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 @@ -19,4 +19,4 @@ end end -end \ No newline at end of file +end