I\'ve got an import controller in rails that imports several csv files with multiple records into my database. I would like to test in RSpec if the records are actually save
There's a new syntax for this:
expect_any_instance_of(Model).to receive(:save).at_least(:once)