Sha256: aad31ff9b3261ea621a4eec69dcdd9ce910fb902e9f94ccfaf242dde0c5c190b

Contents?: true

Size: 870 Bytes

Versions: 4

Compression:

Stored size: 870 Bytes

Contents

require 'acceptance_spec_helper'

feature "Aids completion with matches" do
  background { config_exists <<-CONFIG }
    project :foo do
      environment :test do
        server :s1 do
          host '1.2.3.4'
        end
      end
    end

    server :s10 do
      host '2.3.4.5'
    end
  CONFIG

  scenario "Show servers by default" do
    run "taketo --matches"
    stdout.split.should =~ %w(foo:test:s1 s10)
    stderr.should be_empty
    exit_status.should be_success
  end

  scenario "Show scopes for --list" do
    run "taketo --list --matches"
    stdout.split.should =~ %w(foo foo:test)
    stderr.should be_empty
    exit_status.should be_success
  end

  scenario "Show all for --view" do
    run "taketo --view --matches"
    stdout.split.should =~ %w(foo foo:test foo:test:s1 s10)
    stderr.should be_empty
    exit_status.should be_success
  end
end


Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
taketo-0.3.1 spec/acceptance/completion_spec.rb
taketo-0.3.0 spec/acceptance/completion_spec.rb
taketo-0.2.0 spec/acceptance/completion_spec.rb
taketo-0.2.0.alpha spec/acceptance/completion_spec.rb