I have a rails 4 validation for my User model:
has_many :items, -> { order(:position) }
I expected the following shoulda matcher to work:
it {should have_many(:items).order(:position)}
But it raises this error:
Expected User to have a has_many association called items (items should be ordered by position)
Is my syntax wrong for the test?