RiotGames/motherbrain — pull request #671 by KAllan357 (2014-03-04 19:27:50+00:00)
Title: Fresh checkout of motherbrain has 3 failing specs

The first two are
```
1) MotherBrain::API::V1::JobsEndpoint GET /jobs returns all jobs
Failure/Error: JSON.parse(last_response.body).should have(0).items
JSON::ParserError:
757: unexpected token at '"#"'
# ./spec/unit/mb/api/v1/jobs_endpoint_spec.rb:14:in `block (3 levels) in '

2) MotherBrain::API::V1::PluginsEndpoint GET /plugins/:name/latest returns the latest plugin version
Failure/Error: response["version"]["major"].should eql(2)

expected: 2
got: nil

(compared using eql?)
# ./spec/unit/mb/api/v1/plugins_endpoint_spec.rb:100:in `block (3 levels) in '
```

The third is the mb/provisioners/environment_factory_spec.rb which references `MB::Provisioner::EnvironmentFactory` and blows up because this class/module is not in the source.
```
/Users/pairing/projects/motherbrain/spec/unit/mb/provisioners/environment_factory_spec.rb:3:in `': uninitialized constant MotherBrain::Provisioner::EnvironmentFactory (NameError)
from /Users/pairing/.rvm/gems/ruby-2.0.0-p353/gems/rspec-core-2.14.8/lib/rspec/core/configuration.rb:896:in `load'
from /Users/pairing/.rvm/gems/ruby-2.0.0-p353/gems/rspec-core-2.14.8/lib/rspec/core/configuration.rb:896:in `block in load_spec_files'
from /Users/pairing/.rvm/gems/ruby-2.0.0-p353/gems/rspec-core-2.14.8/lib/rspec/core/configuration.rb:896:in `each'
from /Users/pairing/.rvm/gems/ruby-2.0.0-p353/gems/rspec-core-2.14.8/lib/rspec/core/configuration.rb:896:in `load_spec_files'
from /Users/pairing/.rvm/gems/ruby-2.0.0-p353/gems/rspec-core-2.14.8/lib/rspec/core/command_line.rb:22:in `run'
from /Users/pairing/.rvm/gems/ruby-2.0.0-p353/gems/rspec-core-2.14.8/lib/rspec/core/runner.rb:80:in `run'
from /Users/pairing/.rvm/gems/ruby-2.0.0-p353/gems/rspec-core-2.14.8/lib/rspec/core/runner.rb:17:in `block in autorun'
```