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-1.11.2 spec/support/shared_examples_for_associations.rb
ddr-models-1.11.1 spec/support/shared_examples_for_associations.rb
ddr-models-1.11.0 spec/support/shared_examples_for_associations.rb
ddr-models-1.10.0 spec/support/shared_examples_for_associations.rb
ddr-models-1.9.0 spec/support/shared_examples_for_associations.rb
ddr-models-1.8.1 spec/support/shared_examples_for_associations.rb
ddr-models-1.8.0 spec/support/shared_examples_for_associations.rb
ddr-models-1.7.0 spec/support/shared_examples_for_associations.rb
ddr-models-1.6.0 spec/support/shared_examples_for_associations.rb
ddr-models-1.5.0 spec/support/shared_examples_for_associations.rb
ddr-models-1.4.0 spec/support/shared_examples_for_associations.rb
ddr-models-1.3.0 spec/support/shared_examples_for_associations.rb
ddr-models-1.2.1 spec/support/shared_examples_for_associations.rb
ddr-models-1.2.0 spec/support/shared_examples_for_associations.rb