Sha256: 40489f8afa2c1ebcf21e54427a758c215de7910637fbec29d4b26c439897d8a1

Contents?: true

Size: 262 Bytes

Versions: 5

Compression:

Stored size: 262 Bytes

Contents

require 'simplecov'
require 'pry'

SimpleCov.coverage_dir 'log/coverage/rspec'
SimpleCov.add_filter "spec"
SimpleCov.add_filter "vendor"
SimpleCov.start

def production_code
  spec = caller[0][/spec.+\.rb/]
  './' + spec.gsub('_spec','').gsub(/spec/, 'lib')
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
snmpjr-0.1.5-java spec/spec_helper.rb
snmpjr-0.1.4-java spec/spec_helper.rb
snmpjr-0.1.2-java spec/spec_helper.rb
snmpjr-0.1.3-java spec/spec_helper.rb
snmpjr-0.1.0-java spec/spec_helper.rb