Sha256: 163cc6a78ac46e891d615cc258e14ead71e02ec1f0a9fcd510a74757dd38e7ae
Contents?: true
Size: 630 Bytes
Versions: 5
Compression:
Stored size: 630 Bytes
Contents
# frozen_string_literal: true 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
5 entries across 5 versions & 1 rubygems