Sha256: 9f0f029b660fa5aa956a696e4b40d45831f3ea578370193f39aae2471bdf5f99

Contents?: true

Size: 243 Bytes

Versions: 4

Compression:

Stored size: 243 Bytes

Contents

RSpec::Matchers.define :be_status do |expected|
  match do |actual|
    actual == expected
  end

  description do
    %Q(be #{expected})
  end

  failure_message_for_should do |actual|
    %Q(should #{description}, but is #{actual})
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rspec-api-0.2.0 lib/rspec-api/matchers/status.rb
rspec-api-0.1.2 lib/rspec-api/matchers/status.rb
rspec-api-0.1.1 lib/rspec-api/matchers/status.rb
rspec-api-0.1.0 lib/rspec-api/matchers/status.rb