Method calls count weirdness


I see a really weird behavior there, the following test passes:

it “test”, :focus do
doc =

But when I do:

def update_project!
#some stuff
I enter the method 3 times through pry…

3 vs 2, who is right?

Sorry, the mistake came from the factory itself.

Indeed, the Factory call I really make is slightly different and for a
still unknown reason (asked on factory girl google’s group), the build
method actually created the object…

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs