Sha256: 25891a61a197b2e259929293387244075b6c6e9fe88b01bfa63af2d814b831c3
Contents?: true
Size: 603 Bytes
Versions: 9
Compression:
Stored size: 603 Bytes
Contents
require 'spec_helper' describe 'test' do it 'should succeed' do generate_path = "#{root_path}/tmp/secros_generate_spec_dummy#{SecureRandom.uuid}" `mkdir -p #{File.dirname(generate_path)}` `rm -rf #{generate_path}` `ruby #{File.join(root_path, 'lib', 'generate.rb')} #{generate_path}` `cp #{File.join(root_path, 'spec', 'secrets.yml')} #{generate_path}/secrets.yml` secros = Secros.new(generate_path) secros.value(:test_key).should eq('test_value') secros.file(:test_file_key).should eq("#{generate_path}/files/test_file_value") `rm -rf #{generate_path}` end end
Version data entries
9 entries across 9 versions & 1 rubygems