File: show_middleware_spec.rb

package info (click to toggle)
ruby-pry-rails 0.3.9-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 320 kB
  • sloc: ruby: 844; makefile: 4
file content (14 lines) | stat: -rw-r--r-- 347 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# encoding: UTF-8

require 'spec_helper'

describe "show-middleware" do
  it "should print a list of middleware" do
    output = mock_pry('show-middleware', 'exit-all')

    output.must_match %r{^use ActionDispatch::Static$}
    output.must_match %r{^use ActionDispatch::ShowExceptions$}
    output.must_match %r{^run TestApp.routes\Z}
  end
end