spec/support/crypto_expectations_helper.rb
# Writes the crypto expectations file and returns the file name used
Writes the crypto expectations file and returns the file name used
Writes the crypto expectations file and returns the file name used
def write_crypto_expectations(content,sample_name='sample_user')
    filename = crypto_expectations_sample_path(sample_name)
    File.open(filename,'w') do |f|
      f.write JSON.pretty_generate(content)
    end
    filename
  end
def write_crypto_expectations ( content , sample_name = 'sample_user' ) filename = crypto_expectations_sample_path ( sample_name ) File . open ( filename , 'w' ) do | f | f . write JSON . pretty_generate ( content ) end filename end
Writes the crypto expectations file and returns the file name used
Writes the crypto expectations file and returns the file name used
content
sample_name