Skip to content

Commit

Permalink
Switch from mocha to rspec mocks (#109)
Browse files Browse the repository at this point in the history
  • Loading branch information
silug authored Jun 18, 2024
1 parent 2ee9769 commit 636e1d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def set_hieradata(hieradata)
}

c.mock_framework = :rspec
c.mock_with :mocha
c.mock_with :rspec

c.module_path = File.join(fixture_path, 'modules')
c.manifest_dir = File.join(fixture_path, 'manifests') if c.respond_to?(:manifest_dir)
Expand Down
2 changes: 1 addition & 1 deletion spec/unit/puppet/provider/htaccess/htaccess_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
provider_class = Puppet::Type.type(:htaccess).provider(:htaccess)
describe provider_class do
before :each do
FileUtils.stubs(:chown).returns(true) # can't chown root:root
allow(FileUtils).to receive(:chown).and_return(true) # can't chown root:root
tmp = Tempfile.new('htaccess_tmp')
@htaccess_file = tmp.path
tmp.close!
Expand Down

0 comments on commit 636e1d8

Please sign in to comment.