#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../test_helper' begin require 'sass/less' class LessConversionTest < Test::Unit::TestCase def test_variable_declarations assert_renders < .bar { a: b; } SCSS .foo > .bar {a: b} LESS end def test_adjacent_selector assert_renders < bar { a: b; } + baz { c: d; } } SCSS foo { > bar {a: b} + baz {c: d} } LESS end def test_nested_pseudo_rules assert_renders < .bar" with "@extend .bar" WARN .foo > .bar { a: b; } .bar { // > .bar; @extend .bar; } SCSS .foo > .bar {a: b} .bar {> .bar;} LESS end # Accessors def test_property_accessor assert_warning(< e puts "\nCouldn't require less, skipping some tests." end