In spec/spec_helper.rb the line Puppet[:digest_algorithm] = 'sha256' must be added to the c.before(:each) section of the Configuration settings.