Module: CucumberConsole::Pry

Defined in:
lib/cucumber-console/pry.rb

Class Method Summary collapse

Class Method Details

.setupObject



2
3
4
5
6
7
8
9
10
11
# File 'lib/cucumber-console/pry.rb', line 2

def self.setup
  ::Pry::CommandSet.new do
    create_command "cucumber", "Works pretty much like the regular cucumber command" do
      group "Testing"
      def process(*args)
        CucumberConsole::Runner.run(args)
      end
    end
  end.tap { |cmd| ::Pry::Commands.import cmd }
end