Sha256: 65a8a41c6d344738ce2d2e6f94c9f935dbf53db711f3310c536a39ba8ee59472
Contents?: true
Size: 629 Bytes
Versions: 9
Compression:
Stored size: 629 Bytes
Contents
require 'spec_helper' require 'ronin/ui/cli/command' require 'ui/cli/classes/test_command' describe UI::CLI::Command do subject { TestCommand } it "should have a command name" do subject.command_name.should == 'test_command' end it "should have a default execute task" do subject.start([]).should == ['default task'] end it "should allow running the task with options" do command = subject.run({:foo => true}) command.options.foo.should == true end it "should have zero indentation by default" do command = subject.new command.instance_variable_get('@indent').should == 0 end end
Version data entries
9 entries across 9 versions & 1 rubygems