Sha256: 7e08f7af97abbbbdc832416b82343a36635f45e1d1538683e764926c090ce33f
Contents?: true
Size: 472 Bytes
Versions: 18
Compression:
Stored size: 472 Bytes
Contents
require File.expand_path('../test_helper', __FILE__) class StylusTest < UnitTest class App < UnitTest::App register Sinatra::AssetPack 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
18 entries across 18 versions & 3 rubygems