Sha256: 37e7cfbb9ea6e2bbdd18a57e41bf6f7a9efa0b9bde144c1713b74f2843348b1f
Contents?: true
Size: 1.02 KB
Versions: 6
Compression:
Stored size: 1.02 KB
Contents
require 'spec_helper' describe EyProCli do describe "applications" 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) @applications = @accounts.map { |a| boot_environment(subject.core_client, account: a)[2] } end it "returns a list of applications" do output = capture(:stdout) { subject.applications } expect(output).to match(/#{@applications.first.name}/) expect(output).to match(/#{@applications.last.name}/) end it "returns the list of applications for the specified account" do subject.options = {account: @accounts.first.id} output = capture(:stdout) { subject.applications } expect(output).to match(/#{@accounts.first.applications.first.name}/) expect(output).not_to match(/#{@accounts.last.applications.first.name}/) end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems