Sha256: 440b28ff7da553f0fca8f8ab3fe15653f91299fa4c3bd695cf66dd187b470742
Contents?: true
Size: 625 Bytes
Versions: 1
Compression:
Stored size: 625 Bytes
Contents
require 'rspec' require 'simplecov' require 'simplecov-rcov' require 'webmock/rspec' require File.expand_path('../../../../lib/jenkins_pipeline_builder', __FILE__) RSpec::Matchers.define :have_min_version do |version| match do |base| @exts = base !base.select { |ext| ext.min_version == version }.empty? end failure_message_for_should do versions = @exts.map { |x| x.min_version }.join(', ') "Expected to find extension #{@exts.first.name} with version #{version}, found #{versions} instead" end end RSpec.configure do |config| config.expect_with :rspec do |c| c.syntax = :expect end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jenkins_pipeline_builder-0.6.0 | spec/lib/jenkins_pipeline_builder/spec_helper.rb |