Sha256: c8b8e4ece3d29006b9f781c00db7057dc9b3b829920346ddb03d9e4007b63984

Contents?: true

Size: 866 Bytes

Versions: 12

Compression:

Stored size: 866 Bytes

Contents

require  File.dirname(__FILE__)+'/test_helper'
require 'compass'

class ConfigurationTest < Test::Unit::TestCase
  def test_parse_and_serialize
    contents = <<-CONFIG
      require 'compass'
      require 'sass'
      # Require any additional compass plugins here.

      css_dir = "css"
      sass_dir = "sass"
      images_dir = "img"
      javascripts_dir = "js"
    CONFIG

    Compass.configuration.parse_string(contents, "test_parse")

    assert_equal 'sass', Compass.configuration.sass_dir
    assert_equal 'css', Compass.configuration.css_dir
    assert_equal 'img', Compass.configuration.images_dir
    assert_equal 'js', Compass.configuration.javascripts_dir

    expected_lines = contents.split("\n").map{|l|l.strip}
    actual_lines = Compass.configuration.serialize.split("\n").map{|l|l.strip}
    assert_equal expected_lines, actual_lines
  end

end

Version data entries

12 entries across 12 versions & 4 rubygems

Version Path
bsherman-compass-0.5.2 test/configuration_test.rb
chriseppstein-compass-0.5.0 test/configuration_test.rb
chriseppstein-compass-0.5.1 test/configuration_test.rb
chriseppstein-compass-0.5.2 test/configuration_test.rb
chriseppstein-compass-0.5.3 test/configuration_test.rb
chriseppstein-compass-0.5.4 test/configuration_test.rb
chriseppstein-compass-0.5.5 test/configuration_test.rb
chriseppstein-compass-0.5.9 test/configuration_test.rb
chriseppstein-compass-0.6.0 test/configuration_test.rb
jwhitmire-compass-0.5.1.1 test/configuration_test.rb
jwhitmire-compass-0.5.1.2 test/configuration_test.rb
merbjedi-compass-0.5.0 test/configuration_test.rb