Sha256: 576ec716a998b395350bf4f36d71decb7afafeeaa72b496eed44315bb493f158

Contents?: true

Size: 291 Bytes

Versions: 47

Compression:

Stored size: 291 Bytes

Contents

# frozen_string_literal: true

# output standard header for file load during testing
#
def spec_source(file, env_var_name = 'SPEC_DEBUG')
  if (->(val) { val.nil? ? false : !(val.empty? || val == '0') })
     .call(ENV.fetch(env_var_name, nil))
    puts "#{env_var_name}: #{file}"
  end
end

Version data entries

47 entries across 47 versions & 1 rubygems

Version Path
markdown_exec-2.7.2 lib/rspec_helpers.rb
markdown_exec-2.7.1 lib/rspec_helpers.rb
markdown_exec-2.7.0 lib/rspec_helpers.rb
markdown_exec-2.6.0 lib/rspec_helpers.rb
markdown_exec-2.5.0 lib/rspec_helpers.rb
markdown_exec-2.4.0 lib/rspec_helpers.rb
markdown_exec-2.3.0 lib/rspec_helpers.rb
markdown_exec-2.2.0 lib/rspec_helpers.rb
markdown_exec-2.1.0 lib/rspec_helpers.rb
markdown_exec-2.0.8.4 lib/rspec_helpers.rb
markdown_exec-2.0.8.3 lib/rspec_helpers.rb
markdown_exec-2.0.8.2 lib/rspec_helpers.rb
markdown_exec-2.0.8.1 lib/rspec_helpers.rb
markdown_exec-2.0.8 lib/rspec_helpers.rb
markdown_exec-2.0.7 lib/rspec_helpers.rb
markdown_exec-2.0.6 lib/rspec_helpers.rb
markdown_exec-2.0.5 lib/rspec_helpers.rb
markdown_exec-2.0.4 lib/rspec_helpers.rb
markdown_exec-2.0.3.2 lib/rspec_helpers.rb
markdown_exec-2.0.3.1 lib/rspec_helpers.rb