fixed command.rb
get rid of a rspec deprecation warning