Sha256: dab36b7a51140ffb1810df3f4d26f2e47160dc2786cf24c363980825d35bb7a5

Contents?: true

Size: 600 Bytes

Versions: 1

Compression:

Stored size: 600 Bytes

Contents

# encoding: UTF-8
require 'spec_helper'
require 'shared_examples/asset_provider'

module Roadie
  describe NullProvider do
    it_behaves_like "asset provider role"

    def expect_empty_stylesheet(stylesheet)
      stylesheet.should_not be_nil
      stylesheet.name.should == "(null)"
      stylesheet.should have(0).blocks
      stylesheet.to_s.should be_empty
    end

    it "finds an empty stylesheet for every name" do
      expect_empty_stylesheet NullProvider.new.find_stylesheet("omg wtf bbq")
      expect_empty_stylesheet NullProvider.new.find_stylesheet!("omg wtf bbq")
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
roadie-3.0.0.pre1 spec/lib/roadie/null_provider_spec.rb