Sha256: cb15fbbbbf664250dc794cc673d1295cd3e53d3d6dc4837f7abdda09e7ad55f0

Contents?: true

Size: 522 Bytes

Versions: 1

Compression:

Stored size: 522 Bytes

Contents

require 'spec_helper'

describe Travis::CLI::Endpoint do
  example "travis encrypt foo" do
    run_cli('encrypt', 'foo', '-E').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 .travis.yml 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

1 entries across 1 versions & 1 rubygems

Version Path
travis-1.0.2 spec/cli/encrypt_spec.rb