antonmi / espec_phoenix

ESpec for Phoenix web framework.
MIT License
137 stars 33 forks source link

Update README instructions for Ecto 2.0 #30

Closed madundead closed 8 years ago

madundead commented 8 years ago

In order to wrap specs in SQL transactions with Ecto < 2.0 we used

Ecto.Adapters.SQL.begin_test_transaction(App.Repo)

With Ecto 2.0+ it's deprecated and we're supposed to use Ecto.Adapters.SQL.Sandbox methods.

This PR is just a clarification and typo fix for eb05bb6595bcd7df2b0afe4062b69bd772e9154f

madundead commented 8 years ago

Crap. I just saw it was already done in https://github.com/antonmi/espec_phoenix/pull/29.