Sha256: a2d4024d42fed594f98d5cfbe846bb6a00b81634ce05692bc222eb1286328b78
Contents?: true
Size: 653 Bytes
Versions: 6
Compression:
Stored size: 653 Bytes
Contents
require 'spec_helper' describe NetSuite::Records::ItemOptionCustomField do describe ".get" do let(:response) do NetSuite::Response.new( success: true, body: { label: "Value of Label", } ) end it "returns a ItemOptionCustomField instance with populated fields" do expect(NetSuite::Actions::Get) .to receive(:call) .with([NetSuite::Records::ItemOptionCustomField, internal_id: 1], {}) .and_return(response) record = NetSuite::Records::ItemOptionCustomField.get(internal_id: 1) expect(record.label).to eql("Value of Label") end end end
Version data entries
6 entries across 6 versions & 1 rubygems