History

Refactor app size/theme methods

Thibaut committed 11 years ago

Commit b3c569b1 parent e2b86744 files · +22 −14Browse files

Showing the changes to test (1 of 4 files). Show all

Unified · Split

test/app_test.rb+4−4
@@ -69,17 +69,17 @@ class AppTest < MiniTest::Spec · 68 unmodified lines
69 assert_includes last_response.body, '/html/index.json'69 assert_includes last_response.body, '/html/index.json'
70 end70 end
71 71
72 it "includes has the word 'light' by default" do72 it "has the word 'default' when no 'dark' cookie is set" do
73 get '/manifest.appcache'73 get '/manifest.appcache'
74 assert_includes last_response.body, '# light'74 assert_includes last_response.body, '# default'
75 refute_includes last_response.body, '# dark'75 refute_includes last_response.body, '# dark'
76 end76 end
77 77
78 it "includes has the word 'dark' when the cookie is set" do78 it "has the word 'dark' when the cookie is set" do
79 set_cookie('dark=1')79 set_cookie('dark=1')
80 get '/manifest.appcache'80 get '/manifest.appcache'
81 assert_includes last_response.body, '# dark'81 assert_includes last_response.body, '# dark'
82 refute_includes last_response.body, '# light'82 refute_includes last_response.body, '# default'
83 end83 end
84 84
85 it "sets default size" do85 it "sets default size" do