Sha256: 864d8eadc41e00db2c63431d3279d4be70b99c6ef8a283cd5683afaa6725a43c
Contents?: true
Size: 906 Bytes
Versions: 1
Compression:
Stored size: 906 Bytes
Contents
require 'spec_helper' require 'ronin/ui/cli/cli' describe UI::CLI do describe "commands" do subject { described_class.commands } it { should_not be_empty } it "should replace '/' characters with a ':'" do subject.all? { |command| command.include?('/') }.should be_false end end describe "command" do it "should load classes from 'ronin/ui/cli/commands/'" do command = subject.command('help') command.name.should == 'Ronin::UI::CLI::Commands::Help' end it "should load classes from namespaces within 'ronin/ui/cli/commands/'" do command = subject.command('net:proxy') command.name.should == 'Ronin::UI::CLI::Commands::Net::Proxy' end it "should raise UnknownCommand for unknown commands" do lambda { subject.command('foo') }.should raise_error(described_class::UnknownCommand) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ronin-1.5.0 | spec/ui/cli/cli_spec.rb |