antonmi / antonmi/espec_phoenix

Documentation on upgrading to 0.5?

Abierto
#34 4 comentarios 0 reacciones 0 asignados Ver en GitHub
discussion enhancement
Lenguaje dominante
Elixir
Estrellas
138
Forks
31
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

Hi @antonmi ,

First of all, thank you so much for bringing espec and espec_phoenix to the ecosystem!

I have upgraded to v0.5 and as expected most of my test cases no longer work. Some are easier to transition to the "new approach", for instance I figured that instead of doing `be_redirection`, we should now use `html_response/2`, etc, however, not all the API changes are obvious, especially when the previous versions provided us with a lot of helper functions (for better or for worse).

What I am curious about is a smoother upgrade path for everyone. For example, if I have this before:

``` elixir
it do: should have_in_flash(success: "Signed up successfully.")
```

Do I now do this instead?

``` elixir
it do: assert get_flash(:success) == "Signed up successfully."
```

And if I had this before:

``` elixir
it do: should render_template("edit.html")
```

What is the equivalent new approach?

Thanks once again for the great library! :)

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.