puppetlabs/puppetlabs_spec_helper — pull request #26 by mitchellh (2012-12-05 18:05:50+00:00)
Title: Fix Mocha deprecations

With the Mocha version that puppetlabs_spec_helper is depending, there are deprecation errors when using it:

```
/Users/mitchellh/.rbenv/versions/1.9.3-p327/bin/ruby -S rspec spec/classes/libffi_darwin_spec.rb spec/classes/libffi_merge_environment_spec.rb spec/classes/libffi_spec.rb

*** Mocha deprecation warning: Change `require 'mocha'` to `require 'mocha/setup'`.

*** Mocha deprecation warning: Test::Unit or MiniTest must be loaded *before* Mocha.

*** Mocha deprecation warning: If you're integrating with a test library other than Test::Unit or MiniTest, you should use `require 'mocha/api'` instead of `require 'mocha'`.
```

This fixes those errors.