rick/linode — pull request #27 by displague (2014-09-09 03:13:10+00:00)
Title: hook new Image endpoint into main Linode object

The `linode.image` namespace was missed in https://github.com/rick/linode/pull/23

```
displague@i:~/src/linode$ bundle exec irb -I lib
irb(main):001:0> require 'rubygems' ; require 'linode';
l = ::Linode.new :api_key=> 'abc123'
=> #
irb(main):002:0> l.image.list
NoMethodError: undefined method `image' for #
from (irb):2
from /usr/bin/irb:11:in `

'
```

The tests don't catch this because they jump right into the Linode::Image class, without using the Linode namespaces.

With this PR:
```
irb(main):005:0* l.image.list
=> [#, ...]
irb(main):006:0> l.image.delete :imageid => 9610
=> [#]
```

I see the need for testing that namespaces exist within Linode, but I'm not sure how you would approach this.
Check for the existence of the tested item within `Linode` from each `spec/linode/*_spec` ? Or would you have `linode_spec` check all known names (seems pointless) or derive the names from a directory listing?