Sha256: e54658807c389a176f5015b1740198113a3ab5f4b78be2ef4510e506c0a0e1c1

Contents?: true

Size: 382 Bytes

Versions: 114

Compression:

Stored size: 382 Bytes

Contents

RSpec.shared_examples "it has an association" do |macro, association, property, class_name|
  it "via a certain property" do
    expect(described_class.reflect_on_association(association).options[:property]).to eq property
  end
  it "targeting a certain class name" do
    expect(described_class.reflect_on_association(association).options[:class_name]).to eq class_name
  end
end

Version data entries

114 entries across 114 versions & 1 rubygems

Version Path
ddr-models-2.1.2 spec/support/shared_examples_for_associations.rb
ddr-models-2.1.1 spec/support/shared_examples_for_associations.rb
ddr-models-2.1.0 spec/support/shared_examples_for_associations.rb
ddr-models-2.1.0.rc2 spec/support/shared_examples_for_associations.rb
ddr-models-2.1.0.rc1 spec/support/shared_examples_for_associations.rb
ddr-models-2.0.1 spec/support/shared_examples_for_associations.rb
ddr-models-2.0.0 spec/support/shared_examples_for_associations.rb
ddr-models-2.0.0.rc6 spec/support/shared_examples_for_associations.rb
ddr-models-2.0.0.rc5 spec/support/shared_examples_for_associations.rb
ddr-models-2.0.0.rc4 spec/support/shared_examples_for_associations.rb
ddr-models-2.0.0.rc3 spec/support/shared_examples_for_associations.rb
ddr-models-2.0.0.rc2 spec/support/shared_examples_for_associations.rb
ddr-models-1.17.1 spec/support/shared_examples_for_associations.rb
ddr-models-2.0.0.rc1 spec/support/shared_examples_for_associations.rb
ddr-models-2.0.0.pre.5 spec/support/shared_examples_for_associations.rb
ddr-models-1.17.0 spec/support/shared_examples_for_associations.rb
ddr-models-2.0.0.pre.4 spec/support/shared_examples_for_associations.rb
ddr-models-2.0.0.pre.3 spec/support/shared_examples_for_associations.rb
ddr-models-1.16.2 spec/support/shared_examples_for_associations.rb
ddr-models-2.0.0.pre.2 spec/support/shared_examples_for_associations.rb