Showing the changes to test (1 of 4 files). Show all
Unified · Split
| @@ -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 | end | 70 | end |
| 71 | 71 | ||
| 72 | it "includes has the word 'light' by default" do | 72 | 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 | end | 76 | end |
| 77 | 77 | ||
| 78 | it "includes has the word 'dark' when the cookie is set" do | 78 | 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 | end | 83 | end |
| 84 | 84 | ||
| 85 | it "sets default size" do | 85 | it "sets default size" do |