require 'spec_helper' describe AmoCRM::Resources::Subresource do let(:item) { double key1: 1, key2: 2 } let(:items) { [item] } subject { described_class.new items } it { expect(subject.items).to eq items } end