playlouder/climate — pull request #8 by timcowlishaw (2012-09-11 17:29:56+00:00)
Title: Helper methods to test presence of arguments on command definitions

Hi there chaps.

I know I'm a massive dork for programming when I'm meant to be on holiday on all, but I've been playing with climate for a little project of my own, and decided that it'd be useful to be able to
write test for my commands that declaratively specify the arguments they expect to receive. An rspec-flavoured example:
```ruby
it "has an argument called 'foo'" do
@command.should_have_argument(:foo)
end
```
or in Test::Unit or similar
```ruby
def test_it_has_a_foo_argument
assert @command.has_argument?(:foo)
end
```

What do you think? useful? See yous all next week.

Cheers,

Tim