Sha256: d94e6330cf432b2e9472d6b57c7b55cf36177342d2ebedc7cd56f9dc7331d9f5

Contents?: true

Size: 417 Bytes

Versions: 2

Compression:

Stored size: 417 Bytes

Contents

require 'spec_helper'

describe Stylus::ImportProcessor do
  it 'adds an imported stylesheet as a dependency' do
    source     = fixture(:import).first
    template   = Stylus::ImportProcessor.new { source }
    dependency = Pathname.new(fixture_path('mixins/vendor'))
    sprockets  = double(:resolve => dependency)

    sprockets.should_receive(:depend_on).with(dependency)
    template.render(sprockets)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
stylus-0.6.0 spec/import_processor_spec.rb
stylus-0.5.1 spec/import_processor_spec.rb