Sha256: 353b44e7e9515a36a1c1427da0e7b171b970ea27cdd2fa84b8afc7c504b6d387

Contents?: true

Size: 853 Bytes

Versions: 5

Compression:

Stored size: 853 Bytes

Contents

require File.dirname(__FILE__) + "/spec_helper"

describe "Compass integration" do
  context "with the default staticmatic configuraiton" do 
    before do
      setup_staticmatic
    end
  
    it "should configure compass" do
      Compass.configuration.project_path.should == TEST_SITE_PATH
      Compass.configuration.sass_dir.should == File.join("src", "stylesheets")
      Compass.configuration.css_dir.should == File.join("site", "stylesheets")
      Compass.configuration.images_dir.should == File.join("site", "images")
      Compass.configuration.http_images_path.should == "site/images"
    end
  end
  
  context "with a custom configuration" do
    before do
      setup_staticmatic
    end
    
    it "should allow site config to override defaults" do
      Compass.configuration.http_path.should == "http://a.test.host"
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
staticmatic-0.11.0.alpha.10 spec/compass_integration_spec.rb
staticmatic-0.11.0.alpha.9 spec/compass_integration_spec.rb
staticmatic-0.11.0.alpha.8 spec/compass_integration_spec.rb
staticmatic-0.11.0.alpha.7 spec/compass_integration_spec.rb
staticmatic-0.11.0.alpha.6 spec/compass_integration_spec.rb