Sha256: 4f82882fe7d6bad3ffd933ae636a255bf528585f6cc0afdaa073bebbeb91bcc7
Contents?: true
Size: 1.02 KB
Versions: 6
Compression:
Stored size: 1.02 KB
Contents
require 'spec_helper' describe EyProCli do describe "environments" do context "with a token" do context "with multiple accounts" do before(:each) do create_core_credentials @accounts = create_accounts(subject.core_client, quantity: 2) @environments = @accounts.map { |a| boot_environment(subject.core_client, account: a)[1] } end it "returns a list of environments" do output = capture(:stdout) { subject.environments } expect(output).to match(/#{@environments.first.name}/) expect(output).to match(/#{@environments.last.name}/) end it "returns the list of environments for the specified account" do subject.options = {account: @accounts.first.id} output = capture(:stdout) { subject.environments } expect(output).to match(/#{@accounts.first.environments.first.name}/) expect(output).not_to match(/#{@accounts.last.environments.first.name}/) end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems