Sha256: 15c2aed63fc13d6ff9c681afe7c2c55726b64e503cf26e0395cc5a21004682f7
Contents?: true
Size: 755 Bytes
Versions: 1
Compression:
Stored size: 755 Bytes
Contents
require 'spec_helper' require 'kintone/command/field_acl' require 'kintone/api' describe Kintone::Command::FieldAcl do let(:target) { Kintone::Command::FieldAcl.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/field/acl.json" ). with(:body => {"id" => 1, "rights" => {"p1" => "abc", "p2" => "def"}}.to_json). to_return(:body => "{}", :status => 200) end let(:id) { 1 } let(:rights) { {"p1" => "abc", "p2" => "def"} } it { expect(subject).to eq({}) } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
kintone-0.0.4 | spec/command/field_acl_spec.rb |