File: ri_command_spec.rb

package info (click to toggle)
pry 0.15.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,772 kB
  • sloc: ruby: 21,692; sh: 17; makefile: 11
file content (9 lines) | stat: -rw-r--r-- 233 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
# frozen_string_literal: true

describe "ri" do
  it "prints an error message without an argument" do
    expect(pry_eval("ri")).to include(
      "Please provide a class, module, or method name (e.g: ri Array#push)"
    )
  end
end