Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 202d15a221
Fetching contributors…

Cannot retrieve contributors at this time

27 lines (22 sloc) 0.58 kB
require 'test_helper'
class ExampleController < ActionController::Base
def test
render :text => 'OK'
end
end
class ControllerTest < ActionController::TestCase
def setup
@controller = ExampleController.new
@request = ActionController::TestRequest.new
@response = ActionController::TestResponse.new
setup_for_generate_test
end
def teardown
teardown_for_generate_test
end
should "generate less files" do
write_less 'xxx.less', 'a{color:red}'
get :test
assert_include 'a { color: red; }', read_css('xxx.css').strip
end
end
Jump to Line
Something went wrong with that request. Please try again.