spec/ui/cli/command_spec.rb in ronin-1.0.0.rc1 vs spec/ui/cli/command_spec.rb in ronin-1.0.0.rc2

- old
+ new

@@ -12,9 +12,15 @@ 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