antonmi / espec_phoenix

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

Controller Tests Cruft With Phoenix v1.2.0 #27

Closed baoist closed 8 years ago

baoist commented 8 years ago

Per upgrade notes, conn should now use build_conn.

Individual tests using action without passing their own conn writes the following to stdout:

warning: using conn/0 to build a connection is deprecated. Use build_conn/0 instead.
    spec/controllers/registration_controller_spec.exs:2: MyApp.ControllerSpec.action/2
    (espec) lib/espec/let/let_impl.ex:9: ESpec.Let.Impl.let_eval/2
    spec/controllers/registration_controller_spec.exs:2: MyApp.ControllerSpec.should/1
    (espec) lib/espec/example_runner.ex:62: ESpec.ExampleRunner.try_run/3