diff --git a/lib/puppet/provider.rb b/lib/puppet/provider.rb
index <HASH>..<HASH> 100644
--- a/lib/puppet/provider.rb
+++ b/lib/puppet/provider.rb
@@ -551,6 +551,11 @@ class Puppet::Provider
     "#{@resource}(provider=#{self.class.name})"
   end
 
+  # @return [String] Returns a human readable string with information about the resource and the provider.
+  def inspect
+    to_s
+  end
+
   # Makes providers comparable.
   include Comparable
   # Compares this provider against another provider.
(maint) Implement inspect method on base type provider.

It looks like RSpec was changed to call inspect rather than to_s when
displaying error messages on expected values.  This results in
uninformative error messages when a type provider is passed to expect,
such as in:

```
expect(provider).to be_insync(is)
```

This simply adds an `#inspect` method that calls the existing `#to_s`
implementation to restore the expected error messages.