add base and spinner specs
tweak code to make it work under ruby 1.9.2