Sha256: 3dcdc7b03601a3e7972343a2523f3632aa3fc0d88a04ab89e657342b7a3b8751
Contents?: true
Size: 821 Bytes
Versions: 1
Compression:
Stored size: 821 Bytes
Contents
require 'test_helper' class LessCacheControllerTest < ActionController::IntegrationTest def setup Less::More.source_path = File.join(File.dirname(__FILE__), 'less_files') end test "regular stylesheet" do get "stylesheets/test.css" assert_response :success assert @response.body.include?("body { color: #222222; }") end test "sub-folder" do get "stylesheets/sub/test2.css" assert_response :success assert @response.body.include?("div { display: none; }") end test "404" do Less::More.expects(:generate).never get "stylesheets/does_not_exist.css" assert_response 404 end test "setting headers with page cache" do Less::More.expects(:page_cache?).returns(false) get "stylesheets/test.css" assert @response.headers["Cache-Control"] end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
more-0.0.3 | test/less_cache_controller_test.rb |