Sha256: 81d965cbd690cf4883a09ed5b2c8c0978e045b5440eaf977d54500b28f45131c

Contents?: true

Size: 848 Bytes

Versions: 5

Compression:

Stored size: 848 Bytes

Contents

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

describe "Compass integration" do
  context "with the default staticmatic configuration" 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 == "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 & 2 rubygems

Version Path
staticmatic2-2.0.2 spec/compass_integration_spec.rb
staticmatic2-2.0.1 spec/compass_integration_spec.rb
staticmatic2-2.0.0 spec/compass_integration_spec.rb
staticmatic-0.11.1 spec/compass_integration_spec.rb
staticmatic-0.11.0 spec/compass_integration_spec.rb