Sha256: 5e9b8661812db69f84e6438547a9c2c433030c5c3aa648bde66b449563587931

Contents?: true

Size: 684 Bytes

Versions: 1

Compression:

Stored size: 684 Bytes

Contents

require 'helper'

class TestSlimPretty < TestSlim
  def setup
    Slim::Engine.set_default_options :pretty => true
  end

  def teardown
    Slim::Engine.set_default_options :pretty => false
  end

  def test_pretty_sass
    source = %q{
doctype 5
html
  head
    title Hello World!
    sass:
      body
        background-color: red
  body
    #container
      p Hello!
}

    result = %q{<!DOCTYPE html>
<html>
  <head>
    <title>Hello World!</title>
    <style type="text/css">
      body {
        background-color: red;
      } 
    </style>
  </head>
  <body>
    <div id="container">
      <p>Hello!</p>
    </div>
  </body>
</html>}

    assert_html result, source
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
slim-0.9.2 test/slim/test_pretty.rb