Sha256: 151caa6d706e079b796153333e38085d075728253cc6e1d8ee4388ae2c0b51f1

Contents?: true

Size: 556 Bytes

Versions: 1

Compression:

Stored size: 556 Bytes

Contents

require 'spec_helper'

describe Mavenlink::Specificators::Association do
  subject { model.new }

  before { described_class.apply(model) }

  let(:model) do
    Class.new Mavenlink::Model do
      def self.specification
        {'associations' => {'children' => {}, 'parents' => {}}}
      end
    end
  end

  it { should respond_to :children }
  it { should respond_to :parents }

  describe 'real model' do
    subject { Mavenlink::Workspace.new }

    it { should respond_to :primary_counterpart }
    it { should respond_to :participants }
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mavenlink-0.0.1 spec/lib/mavenlink/specificators/association_spec.rb