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.11.0 spec/support/shared_examples_for_associations.rb
ddr-models-2.10.2 spec/support/shared_examples_for_associations.rb
ddr-models-2.10.1 spec/support/shared_examples_for_associations.rb
ddr-models-2.10.0 spec/support/shared_examples_for_associations.rb
ddr-models-2.10.0.rc2 spec/support/shared_examples_for_associations.rb
ddr-models-2.10.0.rc1 spec/support/shared_examples_for_associations.rb
ddr-models-2.9.2 spec/support/shared_examples_for_associations.rb
ddr-models-2.9.1 spec/support/shared_examples_for_associations.rb
ddr-models-2.9.0 spec/support/shared_examples_for_associations.rb
ddr-models-2.9.0.rc1 spec/support/shared_examples_for_associations.rb
ddr-models-2.8.0 spec/support/shared_examples_for_associations.rb
ddr-models-2.8.0.rc1 spec/support/shared_examples_for_associations.rb
ddr-models-2.7.6 spec/support/shared_examples_for_associations.rb
ddr-models-2.7.5 spec/support/shared_examples_for_associations.rb
ddr-models-2.7.4 spec/support/shared_examples_for_associations.rb
ddr-models-2.7.3 spec/support/shared_examples_for_associations.rb
ddr-models-2.7.2 spec/support/shared_examples_for_associations.rb
ddr-models-2.7.1 spec/support/shared_examples_for_associations.rb
ddr-models-2.7.0 spec/support/shared_examples_for_associations.rb
ddr-models-2.7.0.rc1 spec/support/shared_examples_for_associations.rb