Skip to content

Instantly share code, notes, and snippets.

@jaybrueder
Created February 21, 2018 14:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jaybrueder/16c3426300783ce92978f6d4e747b67a to your computer and use it in GitHub Desktop.
Save jaybrueder/16c3426300783ce92978f6d4e747b67a to your computer and use it in GitHub Desktop.
Ohai Plugin 1
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