Created
September 11, 2014 02:39
-
-
Save limhoff-r7/309cfc1250eef961a22d to your computer and use it in GitHub Desktop.
Metasploit version_spec.rb for gem skeleton
This file contains hidden or 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
| 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