mirror of
https://github.com/pry/pry-rails.git
synced 2022-11-09 12:36:03 -05:00
15 lines
412 B
Ruby
15 lines
412 B
Ruby
# encoding: UTF-8
|
|
|
|
# We can just have a smoke test for this one since it's mostly using built-in
|
|
# Rails functionality. Plus the output is a bit different between Rails
|
|
# versions, so that's annoying.
|
|
|
|
require 'spec_helper'
|
|
|
|
describe "show-routes" do
|
|
it "should print a list of routes" do
|
|
output = mock_pry('show-routes', 'exit-all')
|
|
|
|
output.must_match %r{^edit_pokemon GET /pokemon/edit}
|
|
end
|
|
end
|