Skip to content
This repository has been archived by the owner on Dec 24, 2020. It is now read-only.

Commit

Permalink
Whoops, forgot to run the controller tests after the page cache confi…
Browse files Browse the repository at this point in the history
…g update.
  • Loading branch information
augustl committed Oct 8, 2009
1 parent da2fbfd commit 50d6635
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/less_cache_controller_test.rb
Expand Up @@ -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
Expand Down

0 comments on commit 50d6635

Please sign in to comment.