Sha256: 3a3b50282a9fb097c21c8f26d01142885fb2e84224d1e8afcc041399579c09b5
Contents?: true
Size: 678 Bytes
Versions: 56
Compression:
Stored size: 678 Bytes
Contents
require 'kontena/cli/master/user_command' require 'kontena/cli/master/user/invite_command' describe Kontena::Cli::Master::User::InviteCommand do include ClientHelpers describe "#invite" do it 'makes invitation request for all given users' do expect(client).to receive(:post).with("/oauth2/authorize", {email: 'john@example.org', external_id: nil, response_type: "invite"}).once.and_return(Hash.new { "foo" }) expect(client).to receive(:post).with("/oauth2/authorize", {email: 'jane@example.org', external_id: nil, response_type: "invite"}).once.and_return(Hash.new { "bar" }) subject.run(['john@example.org', 'jane@example.org']) end end end
Version data entries
56 entries across 56 versions & 1 rubygems