File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -256,14 +256,14 @@ RSpec.describe Article do
256
256
it { is_expected.to embed_many(:comments ) }
257
257
end
258
258
259
- # when the touch option is provided, then we can also verify that it is set.
259
+ # when the touch option is provided, then we can also verify that it is set
260
260
261
- # by default, with_touch matches true when no parameters are provided.
261
+ # by default, with_touch matches true when no parameters are provided
262
262
describe Article do
263
263
it { is_expected.to belong_to(:author ).of_type(User ).as_inverse_of(:articles ).with_index.with_touch }
264
264
end
265
265
266
- # parameters are supported for explicit matching.
266
+ # parameters are supported for explicit matching
267
267
describe Comment do
268
268
it { is_expected.to be_embedded_in(:article ).as_inverse_of(:comments ).with_polymorphism.with_touch(true ) }
269
269
end
@@ -272,7 +272,7 @@ describe Permalink do
272
272
it { is_expected.to be_embedded_in(:linkable ).as_inverse_of(:link ).with_touch(false ) }
273
273
end
274
274
275
- # touch can also take a symbol represneting a field on the parent to touch.
275
+ # touch can also take a symbol representing a field on the parent to touch
276
276
describe Record do
277
277
it { is_expected.to belong_to(:user ).as_inverse_of(:record ).with_touch(:record_updated_at ) }
278
278
end
You can’t perform that action at this time.
0 commit comments