Sha256: 76c49f00884476c7c100795808c4d5c06f3e7bb6d9144c6298c1741d3f092e50

Contents?: true

Size: 527 Bytes

Versions: 2

Compression:

Stored size: 527 Bytes

Contents

require 'spec_helper'

describe Travis::CLI::Endpoint do
  example "travis encrypt foo" do
    run_cli('encrypt', 'foo').should be_success
    stdout.should match(/^".{60,}"\n$/)
  end

  example "travis encrypt foo -i" do
    run_cli('encrypt', 'foo', '-i').should be_success
    stdout.should start_with("Please add the following to your \e[33m.travis.yml\e[0m file:\n\n  secure: ")
  end

  example "cat foo | travis encrypt" do
    run_cli('encrypt') { |i| i.puts('foo') }
    stdout.should match(/^".{60,}"\n$/)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
travis-1.0.1 spec/cli/encrypt_spec.rb
travis-1.0.0 spec/cli/encrypt_spec.rb