I have a rails model with a
validate :existing_invoice, on: :create
directive. I would like to skip this callback in rspec. In another question (Skip callbacks on Factory Girl and Rspec), I read to use
skip_callback(:validate, :create, :after, :existing_invoice)
as solution, but it looks like this doesn't work. (gives an error "undefined local variable or method `after'") How should I implement my skip_callback to do the job?