Module: RSpecConsole::Pry
- Defined in:
- lib/rspec-console/pry.rb
Class Method Summary collapse
Class Method Details
.setup ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/rspec-console/pry.rb', line 2 def self.setup ::Pry::CommandSet.new do create_command "rspec", "Works pretty much like the regular rspec command" do group "Testing" def process(*args) RSpecConsole::Runner.run(args) end def complete(input) super + Bond::Rc.files(input.split(" ").last || '') end end end.tap { |cmd| ::Pry::Commands.import cmd } end |