Sha256: 52dae4962ecf406126517a59b6cd2ee32c7d744ae2e3f5d61e9291167d7b8618
Contents?: true
Size: 469 Bytes
Versions: 7
Compression:
Stored size: 469 Bytes
Contents
require File.expand_path('../test_helper', __FILE__) require 'stylus' require 'stylus/tilt' class StylusTest < UnitTest class App < Main assets do |a| a.css :a, '/css/a.css', [ '/css/stylus.css' ] end end def app App end test "build" do Stylus.expects(:compile).returns("body{background:#f00;color:#00f;}") get '/css/stylus.css' assert body.gsub(/[ \t\r\n]/, '') == "body{background:#f00;color:#00f;}" end end
Version data entries
7 entries across 7 versions & 1 rubygems