Sha256: 2312828fc59c18ed9fee7848e45f4b8df8b62afa3ba84d160bb79b9031566787
Contents?: true
Size: 761 Bytes
Versions: 7
Compression:
Stored size: 761 Bytes
Contents
RSpec::Matchers.define :serve do |asset_name| match do |sprockets| !!sprockets[asset_name] end failure_message_for_should do |sprockets| "expected #{asset_name} to be served, but it wasn't" end failure_message_for_should_not do |sprockets| "expected #{asset_name} NOT to be served, but it was" end description do "serve #{asset_name}" end end RSpec::Matchers.define :contain do |content| match do |asset| asset.to_s.include? content end failure_message_for_should do |asset| "expected #{asset.logical_path} to contain #{content}" end failure_message_for_should_not do |asset| "expected #{asset.logical_path} to NOT contain #{content}" end description do "contain '#{content}'" end end
Version data entries
7 entries across 7 versions & 1 rubygems