ESpec 0.8.5 has been released
There are a lot of discussions about ESpec expect(…).to
syntax.
Some guys hate this RSpec clone with parentheses and dots.
There is also a discussion about removing tuple modules from Elixir in the future.
ESpec 0.8.5 introduces a new expectation syntax without annoying parentheses!
Instead of expect(answer).to eq(42)
you can write expect answer |> to eq 42
.
And, of course, you can use should
: answer |> should eq 42
.
So, choose the best for you!
ESpecPhoenix has been updated to 0.1.8 and supports new syntax too.
Github: https://github.com/antonmi/espec
Enjoy!
Read next Mixology: ExMachina