How many of them use rspec for controllers and views?

Are there any good reasons to use rspec for controllers and views?

My views are highly dependent on Javascript, and as far as I know, Rspec does not handle javascript / ajax on views. I also use cucumber + selenium for this.

And should I use it for controllers?

Isn't it enough just to use Cucumber + Selenium for application behavior? The reason why the cucumber test passes, then passes, why should I worry about Rspec checks and benchmarks?

Can someone enlighten me on this topic?

+3
source share
2 answers

Cucumber + Shoulda, , , - .

Shoulda , " auth" . :

  • .
  • , .
  • A B.

Shoulda , , , , , , . Cucumber , Inva . .

" " . , :

  • .
  • .

, , , " " . , .

+5

, , javascript , javascript, QUnit.

0

Source: https://habr.com/ru/post/1759777/


All Articles