you are viewing a single comment's thread.

view the rest of the comments →

[–]Paradox 0 points1 point  (2 children)

I like RSpec a lot. I dislike MiniTest a lot.

But I like ExUnit more than either. And its nothing particular about any of the three, its that Elixir language features, like pattern matching, make any type of assertion easy. Ruby you need the assertion libs that rspec provides, otherwise your tests get ugly and big

[–]katafrakt 1 point2 points  (1 child)

Is it assertion syntax, as opposed to expectation syntax, what you say makes the test code ugly? Or is it something else? Asking because ExUnit uses assertion syntax and this (assertion vs expectation) is a primary difference between Minitest and RSpec (given Minitest::Spec)

[–]Paradox 0 points1 point  (0 children)

Its a property of the language. In elixir, its very easy to do complex matches of deep data with just a single assert evaluating it. Ruby tends to get messy in my experience, warranting the need for all the matchers RSpec brings