[devdocsgjs/main: 656/1867] Update tests




commit 79323d3ea86aa7717a8fca2fe773cb042cbcb2dd
Author: Jasper van Merle <jaspervmerle gmail com>
Date:   Thu Jul 11 16:18:31 2019 +0200

    Update tests

 .gitignore       |  2 +-
 test/app_test.rb | 29 -----------------------------
 2 files changed, 1 insertion(+), 30 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index be0e958e..f89ecb61 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,9 +1,9 @@
 .DS_Store
 .bundle
+log
 tmp
 public/assets
 public/fonts
 public/docs/**/*
 docs/**/*
 !docs/*.md
-log
diff --git a/test/app_test.rb b/test/app_test.rb
index 909eb42c..8e9e369b 100644
--- a/test/app_test.rb
+++ b/test/app_test.rb
@@ -43,35 +43,6 @@ class AppTest < MiniTest::Spec
       assert last_response.redirect?
       assert_equal 'https://example.org/', last_response['Location']
     end
-
-    it "sets default size" do
-      get '/'
-      assert_includes last_response.body, 'data-size="20rem"'
-    end
-
-    it "sets size from cookie" do
-      set_cookie('size=42')
-      get '/'
-      assert_includes last_response.body, 'data-size="42px"'
-    end
-
-    it "sets layout from cookie" do
-      set_cookie('layout=foo')
-      get '/'
-      assert_includes last_response.body, '<body class="foo">'
-    end
-
-    it "sets the <html> theme from cookie" do
-      get '/'
-      assert_match %r{<html [^>]*class="[^\"]*_theme-default}, last_response.body
-      refute_includes last_response.body, '_theme-dark'
-
-      set_cookie('dark=1')
-
-      get '/'
-      assert_match %r{<html [^>]*class="[^\"]*_theme-dark}, last_response.body
-      refute_includes last_response.body, '_theme-default'
-    end
   end
 
   describe "/[static-page]" do


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]