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