Skip to content

Instantly share code, notes, and snippets.

@bsylvain
Created July 19, 2017 14:05
Show Gist options
  • Save bsylvain/61b158693f7e798dd3a56bc347b9b46b to your computer and use it in GitHub Desktop.
Save bsylvain/61b158693f7e798dd3a56bc347b9b46b to your computer and use it in GitHub Desktop.
working test but probably not optimal
start_count = contrat.contrat_lines.count
ServicesContrat::AddToContrat.new(contrat).add(produit.id,produit.pricings.first.id)
assert (contrat.contrat_lines.count) == start_count+1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment