File tree Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Original file line number Diff line number Diff line change 1+ require 'spec_helper'
2+ require 'bom_helpers'
3+
4+ RSpec . describe 'helper methods' do
5+ context '#purl' do
6+ it 'builds a purl' do
7+ expect ( purl ( 'activesupport' , '7.0.1' ) ) . to eq ( "pkg:gem/[email protected] " ) 8+ end
9+ end
10+ end
Original file line number Diff line number Diff line change 1+ # Copied from https://github.com/cucumber/aruba/blob/3b1a6cea6e3ba55370c3396eef0a955aeb40f287/spec/spec_helper.rb
2+ # Licensed under MIT - https://github.com/cucumber/aruba/blob/3b1a6cea6e3ba55370c3396eef0a955aeb40f287/LICENSE
3+
4+ $LOAD_PATH << File . expand_path ( '../lib' , __dir__ )
5+
6+ unless RUBY_PLATFORM . include? ( 'java' )
7+ require 'simplecov'
8+ SimpleCov . command_name 'RSpec'
9+
10+ # Run simplecov by default
11+ SimpleCov . start unless ENV . key? 'ARUBA_NO_COVERAGE'
12+ end
13+
14+ # Loading support files
15+ Dir . glob ( File . expand_path ( 'support/*.rb' , __dir__ ) ) . sort . each { |f | require_relative f }
16+ Dir . glob ( File . expand_path ( 'support/**/*.rb' , __dir__ ) ) . sort . each { |f | require_relative f }
You can’t perform that action at this time.
0 commit comments