caskdata/coopr — pull request #778 by dereklwood (2014-11-19 08:12:12+00:00)
Title: Feature/fix rspec

#775 broke rspec. this fixes it, along with some broken worker tests.

```
mac[00:03:12] derek:coopr-provisioner (feature/fix-rspec)$ bundle exec rake
rubocop -D
Inspecting 35 files
...................................

35 files inspected, no offenses detected
/Users/derek/.rvm/rubies/ruby-1.9.3-p374/bin/ruby -I/Users/derek/.rvm/gems/ruby-1.9.3-p374/gems/rspec-core-3.1.7/lib:/Users/derek/.rvm/gems/ruby-1.9.3-p374/gems/rspec-support-3.1.2/lib /Users/derek/.rvm/gems/ruby-1.9.3-p374/gems/rspec-core-3.1.7/exe/rspec --pattern master/spec/\*\*/\*_spec.rb,worker/spec/\*\*/\*_spec.rb
2014-11-19 00:03:19 -0800 - INFO: provisioner master-dereks-macbook-air-17210 initialized

Sinatra API
#"text/html;charset=utf-8", "Content-Length"=>"7", "X-XSS-Protection"=>"1; mode=block", "X-Content-Type-Options"=>"nosniff", "X-Frame-Options"=>"SAMEORIGIN"}, @errors="", @body_string=nil, @status=200, @header={"Content-Type"=>"text/html;charset=utf-8", "Content-Length"=>"7", "X-XSS-Protection"=>"1; mode=block", "X-Content-Type-Options"=>"nosniff", "X-Frame-Options"=>"SAMEORIGIN"}, @chunked=false, @writer=#, @block=nil, @length=7, @body=["UNKNOWN"]>
should serve status endpoint
#"text/html;charset=utf-8", "Content-Length"=>"12", "X-XSS-Protection"=>"1; mode=block", "X-Content-Type-Options"=>"nosniff", "X-Frame-Options"=>"SAMEORIGIN"}, @errors="", @body_string=nil, @status=200, @header={"Content-Type"=>"text/html;charset=utf-8", "Content-Length"=>"12", "X-XSS-Protection"=>"1; mode=block", "X-Content-Type-Options"=>"nosniff", "X-Frame-Options"=>"SAMEORIGIN"}, @chunked=false, @writer=#, @block=nil, @length=12, @body=["{\"usage\":{}}"]>
should serve heartbeat endpoint
2014-11-19 00:03:19 -0800 master-dereks-macbook-air-17210 INFO: adding tenant
2014-11-19 00:03:19 -0800 master-dereks-macbook-air-17210 INFO: adding/updating tenant id: test_tenant
can do tenant operations
2014-11-19 00:03:19 -0800 master-dereks-macbook-air-17210 INFO: adding tenant
can delete a tenant with no workers

Provisioner::CLI
can parse command line arguments

Coopr::Config
can parse the included config file

Automator
when taskName is bootstrap
#new
creates an instance of Automator
creates task instance variable
creates empty result hash
when taskName is install
#new
creates an instance of Automator
creates task instance variable
creates empty result hash
when taskName is configure
#new
creates an instance of Automator
creates task instance variable
creates empty result hash
when taskName is initialize
#new
creates an instance of Automator
creates task instance variable
creates empty result hash
when taskName is start
#new
creates an instance of Automator
creates task instance variable
creates empty result hash
when taskName is stop
#new
creates an instance of Automator
creates task instance variable
creates empty result hash
when taskName is remove
#new
creates an instance of Automator
creates task instance variable
creates empty result hash

Provider
when taskName is create
#new
creates an instance of Provider
creates task instance variable
creates empty result hash
when taskName is confirm
#new
creates an instance of Provider
creates task instance variable
creates empty result hash
when taskName is delete
#new
creates an instance of Provider
creates task instance variable
creates empty result hash

Finished in 0.08204 seconds (files took 0.50083 seconds to load)
36 examples, 0 failures
```