module Prof::ExternalSpec::Helpers::FileHelper
Public Instance Methods
file_path(relative_to_root)
click to toggle source
# 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)
click to toggle source
# 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