Module: Prof::ExternalSpec::Helpers::FileHelper

Defined in:
lib/prof/external_spec/helpers/file_helper.rb

Instance Method Summary collapse

Instance Method Details

#file_path(relative_to_root) ⇒ Object



18
19
20
21
# File 'lib/prof/external_spec/helpers/file_helper.rb', line 18

def file_path(relative_to_root)
  root_path = defined?(ROOT_PATH) ? ROOT_PATH : Dir.pwd
  File.expand_path(relative_to_root, )
end

#json_contents(relative_to_root) ⇒ Object



23
24
25
# File 'lib/prof/external_spec/helpers/file_helper.rb', line 23

def json_contents(relative_to_root)
  raise 'Please use YAML.load_file() instead. See example in p-rabbitmq'
end