Created
February 21, 2018 14:39
-
-
Save jaybrueder/16c3426300783ce92978f6d4e747b67a to your computer and use it in GitHub Desktop.
Ohai Plugin 1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
it 'correctly captures output' do | |
allow(plugin).to receive(:shell_out).with('apachectl -t -D DUMP_MODULES').and_return(double(stdout: 'OUTPUT')) | |
expect(plugin_attribute('apache/modules')).to eq('OUTPUT') | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment