Sha256: 80cd4241179847793e2b2783cf62789e76de1fb4bf529e2933c161ad542b40f9

Contents?: true

Size: 383 Bytes

Versions: 5

Compression:

Stored size: 383 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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ruby-haml-js-0.0.5 spec/support/matchers.rb
ruby-haml-js-0.0.4 spec/support/matchers.rb
ruby-haml-js-0.0.3 spec/support/matchers.rb
ruby-haml-js-0.0.2 spec/support/matchers.rb
ruby-haml-js-0.0.1 spec/support/matchers.rb