Sha256: 7b7e2f7b002ef42056792643744c06fd51ecbdbc5505c31a4839ecbee77f3232

Contents?: true

Size: 617 Bytes

Versions: 16

Compression:

Stored size: 617 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)
      expect(stylesheet).not_to be_nil
      expect(stylesheet.name).to eq("(null)")
      expect(stylesheet).to have(0).blocks
      expect(stylesheet.to_s).to 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

16 entries across 16 versions & 1 rubygems

Version Path
roadie-3.5.1 spec/lib/roadie/null_provider_spec.rb
roadie-3.5.0 spec/lib/roadie/null_provider_spec.rb
roadie-3.4.0 spec/lib/roadie/null_provider_spec.rb
roadie-3.3.0 spec/lib/roadie/null_provider_spec.rb
roadie-3.2.2 spec/lib/roadie/null_provider_spec.rb
roadie-3.2.1 spec/lib/roadie/null_provider_spec.rb
roadie-3.2.0 spec/lib/roadie/null_provider_spec.rb
roadie-3.1.1 spec/lib/roadie/null_provider_spec.rb
roadie-3.1.0 spec/lib/roadie/null_provider_spec.rb
roadie-3.1.0.rc1 spec/lib/roadie/null_provider_spec.rb
roadie-3.0.5 spec/lib/roadie/null_provider_spec.rb
roadie-3.0.4 spec/lib/roadie/null_provider_spec.rb
roadie-3.0.3 spec/lib/roadie/null_provider_spec.rb
roadie-3.0.2 spec/lib/roadie/null_provider_spec.rb
roadie-3.0.1 spec/lib/roadie/null_provider_spec.rb
roadie-3.0.0 spec/lib/roadie/null_provider_spec.rb