spec/kontena/cli/master/users/invite_command_spec.rb in kontena-cli-1.0.0.pre2 vs spec/kontena/cli/master/users/invite_command_spec.rb in kontena-cli-1.0.0.pre3

- old
+ new

@@ -10,11 +10,10 @@ described_class.new(File.basename($0)) end describe "#invite" do it 'makes invitation request for all given users' do - expect(client).to receive(:post).with("/oauth2/authorize", {email: 'john@example.org', response_type: "invite"}).once - expect(client).to receive(:post).with("/oauth2/authorize", {email: 'jane@example.org', response_type: "invite"}).once + expect(client).to receive(:post).with("/oauth2/authorize", {email: 'john@example.org', external_id: nil, response_type: "invite"}).once subject.run(['john@example.org', 'jane@example.org']) end end end