Sha256: 4ce0307d497bb1dc399611fcfceb52f33e7fcfdcd6c8c8a0c6e74aa3f1db59c3

Contents?: true

Size: 477 Bytes

Versions: 1

Compression:

Stored size: 477 Bytes

Contents

require_relative  '../../spec_helper'

describe Syncano::Schema::ResourceDefinition do
  let(:raw_attribute) { double 'raw attribute' }
  let(:attribute) { double 'attribute' }

  before do
    expect(Syncano::Schema::AttributeDefinition).to receive(:new).with('koza', raw_attribute).and_return(attribute)
  end

  it 'should create AttributeDefinition objects' do
    expect(described_class.new(attributes: { 'koza' => raw_attribute }).attributes).to eq([attribute])
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
syncano-4.0.0.pre spec/unit/schema/resource_definition_spec.rb