Fixes #424.
Showing the changes to test (1 of 2 files). Show all
Unified · Split
| @@ -132,6 +132,12 @@ class AppTest < MiniTest::Spec · 131 unmodified lines | ||
| 132 | 132 | assert last_response.ok? |
| 133 | 133 | end |
| 134 | 134 | |
| 135 | + it "renders when the doc exists, is a default doc, and all docs are enabled" do | |
| 136 | + set_cookie('docs=') | |
| 137 | + get '/css/', {}, 'HTTP_USER_AGENT' => MODERN_BROWSER | |
| 138 | + assert last_response.ok? | |
| 139 | + end | |
| 140 | + | |
| 135 | 141 | it "redirects via JS cookie when the doc exists and is enabled" do |
| 136 | 142 | set_cookie('docs=html~5') |
| 137 | 143 | get '/html~5/', {}, 'HTTP_USER_AGENT' => MODERN_BROWSER |