Sha256: 05c1d91c34c889d5f9122abcca0d2a1a25830897a3dd012088c363dd9dd61108
Contents?: true
Size: 478 Bytes
Versions: 3
Compression:
Stored size: 478 Bytes
Contents
require 'spec_helper' require 'fileutils' require 'digest' describe Travis::CLI::EncryptFile do CMD_TARGET = 'README.md' before :each do Digest.stub(:hexencode).and_return "randomhex" # to avoid relying on Dir.pwd value for hex end after :each do FileUtils.rm_f "#{CMD_TARGET}.enc" end example "travis encrypt-file #{CMD_TARGET}" do run_cli('encrypt-file', CMD_TARGET).should be_success File.exists?("#{CMD_TARGET}.enc").should be true end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
travis-1.8.12.travis.1125.9 | spec/cli/encrypt_file_spec.rb |
travis-1.8.12.travis.1116.9 | spec/cli/encrypt_file_spec.rb |
travis-1.8.12.travis.1111.9 | spec/cli/encrypt_file_spec.rb |