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.0.3 lib/rspec_helpers.rb
markdown_exec-2.0.2 lib/rspec_helpers.rb
markdown_exec-2.0.1 lib/rspec_helpers.rb
markdown_exec-2.0.0 lib/rspec_helpers.rb
markdown_exec-1.8.9 lib/rspec_helpers.rb
markdown_exec-1.8.8 lib/rspec_helpers.rb
markdown_exec-1.8.7 lib/rspec_helpers.rb
markdown_exec-1.8.6 lib/rspec_helpers.rb
markdown_exec-1.8.5 lib/rspec_helpers.rb
markdown_exec-1.8.4 lib/rspec_helpers.rb
markdown_exec-1.8.2 lib/rspec_helpers.rb
markdown_exec-1.8.1 lib/rspec_helpers.rb
markdown_exec-1.8 lib/rspec_helpers.rb
markdown_exec-1.7 lib/rspec_helpers.rb
markdown_exec-1.6 lib/rspec_helpers.rb
markdown_exec-1.5 lib/rspec_helpers.rb
markdown_exec-1.4.1 lib/rspec_helpers.rb
markdown_exec-1.4 lib/rspec_helpers.rb
markdown_exec-1.3.9 lib/rspec_helpers.rb
markdown_exec-1.3.8 lib/rspec_helpers.rb