Sha256: 370375b18f6c1249308d7d9a54ba71192d8564e52e311a6c7489a62297f2b630

Contents?: true

Size: 599 Bytes

Versions: 5

Compression:

Stored size: 599 Bytes

Contents

require "test_helper"
require "sassc"

SAMPLE_SASS_STRING = "$size: 30px; .hi { width: $size; }"
SAMPLE_CSS_OUTPUT = ".hi {\n  width: 30px; }\n"

class DataContextTest < MiniTest::Test
  def teardown
    SassC::Native.delete_data_context(@data_context)
  end

  def test_compiled_css_is_correct
    @data_context = SassC::Native.make_data_context(SAMPLE_SASS_STRING)
    context = SassC::Native.data_context_get_context(@data_context)
    SassC::Native.compile_data_context(@data_context)

    css = SassC::Native.context_get_output_string(context)
    assert_equal SAMPLE_CSS_OUTPUT, css
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
sassc-rails-0.0.5 test/smoke_test.rb
sassc-rails-0.0.4 test/smoke_test.rb
sassc-rails-0.0.3 test/smoke_test.rb
sassc-rails-0.0.2 test/smoke_test.rb
sassc-rails-0.0.1 test/smoke_test.rb