Skip to content

Commit

Permalink
use the new stubbing syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
duritong committed Dec 21, 2015
1 parent 00a2af0 commit ce41ba2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def hiera_stub
RSpec.configure do |c|
c.mock_framework = :rspec
c.before(:each) do
Puppet::Indirector::Hiera.stub(:hiera => hiera_stub)
allow(Puppet::Indirector::Hiera).to receive(:hiera) { hiera_stub }
end

end

0 comments on commit ce41ba2

Please sign in to comment.