Skip to content

Commit

Permalink
Update JavaScript redirect test and add test for new url var
Browse files Browse the repository at this point in the history
  • Loading branch information
FokkeZB committed Nov 19, 2016
1 parent a461f3e commit 4faa97c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion spec/jekyll_redirect_from/redirect_page_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,12 @@
expect(page_content).to include("<meta http-equiv=\"refresh\" content=\"1; url=#{item_url}\">")
end

it "contains the url" do
expect(page_content).to include("var url = 'http://jekyllrb.com/2014/01/03/moving-to-jekyll.md';")
end

it "contains JavaScript redirect" do
expect(page_content).to include("location.replace(\"http://jekyllrb.com/2014/01/03/moving-to-jekyll.md\"")
expect(page_content).to include("location=url;")
end

it "contains canonical link in header" do
Expand Down

0 comments on commit 4faa97c

Please sign in to comment.