Skip to content

Commit 79323d3

Browse files
committed
Update tests
1 parent fb2d737 commit 79323d3

File tree

2 files changed

+1
-30
lines changed

2 files changed

+1
-30
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
.DS_Store
22
.bundle
3+
log
34
tmp
45
public/assets
56
public/fonts
67
public/docs/**/*
78
docs/**/*
89
!docs/*.md
9-
log

test/app_test.rb

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -43,35 +43,6 @@ def app
4343
assert last_response.redirect?
4444
assert_equal 'https://example.org/', last_response['Location']
4545
end
46-
47-
it "sets default size" do
48-
get '/'
49-
assert_includes last_response.body, 'data-size="20rem"'
50-
end
51-
52-
it "sets size from cookie" do
53-
set_cookie('size=42')
54-
get '/'
55-
assert_includes last_response.body, 'data-size="42px"'
56-
end
57-
58-
it "sets layout from cookie" do
59-
set_cookie('layout=foo')
60-
get '/'
61-
assert_includes last_response.body, '<body class="foo">'
62-
end
63-
64-
it "sets the <html> theme from cookie" do
65-
get '/'
66-
assert_match %r{<html [^>]*class="[^\"]*_theme-default}, last_response.body
67-
refute_includes last_response.body, '_theme-dark'
68-
69-
set_cookie('dark=1')
70-
71-
get '/'
72-
assert_match %r{<html [^>]*class="[^\"]*_theme-dark}, last_response.body
73-
refute_includes last_response.body, '_theme-default'
74-
end
7546
end
7647

7748
describe "/[static-page]" do

0 commit comments

Comments
 (0)