Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

fix mocha deprecation warnings #156

Merged
merged 1 commit into from

2 participants

@mattr-

A new clone and bundle with puppetlabs-mysql installs mocha 0.13.2. This version of Mocha has deprecated the use of require 'mocha' and instead recommends using require 'mocha/api' for test frameworks that are not Test::Unit or MiniTest.

This pull request fixes those deprecation warnings.

@mattr-

This is issue 19536 on projects.puppetlabs.com

The travis build only fails for puppet version 2.6.0 (and was failing before submitting this pull request). Hopefully that doesn't block this PR getting merged.

@kbarber kbarber merged commit 8eb71cc into puppetlabs:master

1 check failed

Details default The Travis build failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 1, 2013
  1. @mattr-
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  spec/unit/puppet/provider/database_grant/mysql_spec.rb
View
2  spec/unit/puppet/provider/database_grant/mysql_spec.rb
@@ -1,5 +1,5 @@
require 'puppet'
-require 'mocha'
+require 'mocha/api'
require 'spec_helper'
RSpec.configure do |config|
config.mock_with :mocha
Something went wrong with that request. Please try again.