Sha256: 967466062858f813df6d94512330f10843e42c98f042cfe50613052163ba010e
Contents?: true
Size: 837 Bytes
Versions: 3
Compression:
Stored size: 837 Bytes
Contents
require 'spec_helper' require 'kintone/command/space_guests' require 'kintone/api' describe Kintone::Command::SpaceGuests do let(:target) { Kintone::Command::SpaceGuests.new(guest) } let(:guest) { api.guest(guest_id) } let(:guest_id) { 1 } let(:api) { Kintone::Api.new('example.cybozu.com', 'Administrator', 'cybozu') } describe '#update' do before(:each) do stub_request( :put, 'https://example.cybozu.com/k/guest/1/v1/space/guests.json' ) .with(body: { id: id, guests: guests }.to_json) .to_return(body: '{}', status: 200) end subject { target.update(id, guests) } let(:id) { 10 } let(:guests) do [ 'guest1@example.com', 'guest2@example.com', 'guest3@example.com' ] end it { is_expected.to be_truthy } end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
kintone-0.1.2 | spec/kintone/command/space_guests_spec.rb |
kintone-0.1.1 | spec/kintone/command/space_guests_spec.rb |
kintone-0.1.0 | spec/kintone/command/space_guests_spec.rb |