File: body.rb

package info (click to toggle)
ruby-rack-test 0.7.0-1.1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 296 kB
  • sloc: ruby: 1,900; makefile: 5
file content (9 lines) | stat: -rw-r--r-- 182 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
RSpec::Matchers.define :have_body do |expected|
  match do |response|
    expect(response.body).to eq(expected)
  end

  description do
    "have body #{expected.inspect}"
  end
end