Sha256: f6b27265bddeb9543a439a4ec587cbf32fa807ecb69a75b1f969734a286b043b

Contents?: true

Size: 681 Bytes

Versions: 1

Compression:

Stored size: 681 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 -r rails/rails" do
    run_cli('encrypt', 'foo', '-r', 'rails/rails').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.3 spec/cli/encrypt_spec.rb