File: body.rb

package info (click to toggle)
ruby-rack-test 0.7.0-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 296 kB
  • ctags: 127
  • sloc: ruby: 1,900; makefile: 5
file content (9 lines) | stat: -rw-r--r-- 182 bytes parent folder | download | duplicates (3)
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