Skip to content

Instantly share code, notes, and snippets.

@limhoff-r7
Created September 11, 2014 02:39
Show Gist options
  • Save limhoff-r7/309cfc1250eef961a22d to your computer and use it in GitHub Desktop.
Save limhoff-r7/309cfc1250eef961a22d to your computer and use it in GitHub Desktop.
Metasploit version_spec.rb for gem skeleton
require 'spec_helper'
RSpec.describe GEM_NAME do
context 'CONSTANTS' do
context 'VERSION' do
subject(:version) {
described_class::VERSION
}
it { is_expected.to be_a String }
it { is_expected.to match_regex(/\d+.\d+.\d+(-[a-zA-Z0-9]+)*/) }
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment