Sha256: 0347c56b7985550e38b2a78d9f92aec7b58cad57f4c99530eb1baaf07696e4fc
Contents?: true
Size: 832 Bytes
Versions: 2
Compression:
Stored size: 832 Bytes
Contents
require 'spec_helper' require 'kintone/command/record_acl' require 'kintone/api' describe Kintone::Command::RecordAcl do let(:target) { Kintone::Command::RecordAcl.new(api) } let(:api) { Kintone::Api.new('example.cybozu.com', 'Administrator', 'cybozu') } describe '#update' do subject { target.update(id, rights) } context '' do before(:each) do stub_request( :put, 'https://example.cybozu.com/k/v1/record/acl.json' ) .with(body: { 'id' => 1, 'rights' => { 'p1' => 'abc', 'p2' => 'def' } }.to_json) .to_return(body: '{}', status: 200, headers: { 'Content-type' => 'application/json' }) end let(:id) { 1 } let(:rights) { { 'p1' => 'abc', 'p2' => 'def' } } it { expect(subject).to eq({}) } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
kintone-0.1.4 | spec/kintone/command/record_acl_spec.rb |
kintone-0.1.3 | spec/kintone/command/record_acl_spec.rb |