Sha256: da2c95b15ff5295bd000ae88d472a3206a923c5bd79f218066567ecb4dce9d73
Contents?: true
Size: 599 Bytes
Versions: 2
Compression:
Stored size: 599 Bytes
Contents
require 'kintone/command/form' require 'kintone/api' describe Kintone::Command::Form do let(:target) { Kintone::Command::Form.new(api) } let(:api) { Kintone::Api.new("example.cybozu.com", "Administrator", "cybozu") } describe "#get" do subject { target.get(app) } context "" do before(:each) do stub_request( :get, "https://example.cybozu.com/k/v1/form.json?app=4" ). to_return(:body => "{\"result\":\"ok\"}", :status => 200) end let(:app) { 4 } it { expect(subject).to eq({"result" => "ok"})} end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
kintone-0.0.4 | spec/command/form_spec.rb |
kintone-0.0.3 | spec/command/form_spec.rb |