mirror of
https://github.com/inspec/inspec
synced 2024-11-23 13:13:22 +00:00
use Gem::Version instead of a regular expression for a test version bump
This commit is contained in:
parent
1796b91846
commit
17ce99df7f
1 changed files with 1 additions and 1 deletions
|
@ -107,7 +107,7 @@ describe 'metadata with supported operating systems' do
|
|||
|
||||
describe 'testing the supported runtime' do
|
||||
let(:current_version) { Inspec::VERSION }
|
||||
let(:next_version) { current_version.sub(/\.\d+$/) { |num| num.to_i.next } }
|
||||
let(:next_version) { Gem::Version.new(current_version).bump.to_s }
|
||||
|
||||
it 'returns true on testing the current version' do
|
||||
m = supports_meta({ 'inspec' => current_version })
|
||||
|
|
Loading…
Reference in a new issue