Skip to content

Instantly share code, notes, and snippets.

@skottler
Last active August 29, 2015 14:07
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 skottler/342d77e74d4cace59cc3 to your computer and use it in GitHub Desktop.
Save skottler/342d77e74d4cace59cc3 to your computer and use it in GitHub Desktop.
require 'spec_helper'
describe command("env x='() { :;}; echo vulnerable' bash -c 'echo this is a test'") do
its(:exit_status) { is_expected.to eq 0 }
its(:stdout) { is_expected.not_to match(/vulnerable/) }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment