Sha256: 5f69fcdb206bea46fdb8bb54795b6699074dec9fbc3652060881d3ef4ddc660a

Contents?: true

Size: 616 Bytes

Versions: 5

Compression:

Stored size: 616 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|
    @set = base
    !base.extensions.select { |ext| ext.min_version == version }.empty?
  end

  failure_message do
    versions = @set.map { |x| x.min_version }.join(', ')
    "Expected to find extension #{@set.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

5 entries across 5 versions & 1 rubygems

Version Path
jenkins_pipeline_builder-0.7.4 spec/lib/jenkins_pipeline_builder/spec_helper.rb
jenkins_pipeline_builder-0.7.3 spec/lib/jenkins_pipeline_builder/spec_helper.rb
jenkins_pipeline_builder-0.7.2 spec/lib/jenkins_pipeline_builder/spec_helper.rb
jenkins_pipeline_builder-0.7.1 spec/lib/jenkins_pipeline_builder/spec_helper.rb
jenkins_pipeline_builder-0.7.0 spec/lib/jenkins_pipeline_builder/spec_helper.rb