Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Whoops, forgot to run the controller tests after the page cache confi…

…g update.
  • Loading branch information...
commit 50d6635897b87a4821a7e7f4c4035ba573964e4f 1 parent da2fbfd
@augustl augustl authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  test/less_cache_controller_test.rb
View
3  test/less_cache_controller_test.rb
@@ -6,18 +6,21 @@ def setup
end
test "regular stylesheet" do
+ Less::More.expects(:page_cache_enabled_in_environment_configuration?).returns(true).at_least_once
get "stylesheets/test.css"
assert_response :success
assert @response.body.include?("body { color: #222222; }")
end
test "sub-folder" do
+ Less::More.expects(:page_cache_enabled_in_environment_configuration?).returns(true).at_least_once
get "stylesheets/sub/test2.css"
assert_response :success
assert @response.body.include?("div { display: none; }")
end
test "404" do
+ Less::More.expects(:page_cache_enabled_in_environment_configuration?).returns(true)
Less::More.expects(:generate).never
get "stylesheets/does_not_exist.css"
assert_response 404
Please sign in to comment.
Something went wrong with that request. Please try again.