Skip to content

Instantly share code, notes, and snippets.

@ffleming
Created March 1, 2016 21:38
Show Gist options
  • Save ffleming/d2b8af2ff5ef2c0fb857 to your computer and use it in GitHub Desktop.
Save ffleming/d2b8af2ff5ef2c0fb857 to your computer and use it in GitHub Desktop.
Security spec
require 'open3'
RSpec.describe 'security' do
it 'should pass the audit' do
out, err, status = Open3.capture3('bundle-audit')
expect(out.strip).to eq 'No vulnerabilities found'
expect(status).to eq 0
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment