Sha256: 7849e4cf49772d94e4ce2cdcf90f8849bd22acdf03773f80d73e299b3a80ce35

Contents?: true

Size: 759 Bytes

Versions: 1

Compression:

Stored size: 759 Bytes

Contents

shared_examples_for 'a project with correct paths' do
  # Requires:
  #
  #   @project => Montage::Project
  #   @helper  => Montage::Spec::ProjectHelper
  #   @config  => Pathname (path to config file)
  #
  #   (optional)
  #   @root    => Pathname (path to the root of the project)
  #

  before(:all) do
    @root ||= @helper.project_dir
  end

  it 'should set the project root path' do
    @project.paths.root.should == @root
  end

  it 'should set the configuration file path' do
    @project.paths.config.should == @config
  end

  it 'should set the SASS output path' do
    @project.paths.sass.should == @root + 'public/stylesheets/sass'
  end

  it 'should set the CSS sprite URL' do
    @project.paths.url.should == '/images/:name.png'
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
montage-0.4.0 spec/lib/shared_project_specs.rb