How do you develop a Rails application in a Rails application using Cucumber & RSpec?

I just started using the BDD application in Rails, but I'm not sure what are the best practices and workflows? And what other things do I really need to test my project, such as step definitions, controllers, models, and views? Do I need to check all this?

+3
source share
3 answers

I generally think of Cucumber as a way to test integration in your application. Combined with Webrat, you can test workflows, views, etc. For unit tests, you will want to go to a lower level and test your models with rspec only. You can also run some functional tests on controllers, and I probably won't use Cucumber for this.

Here are a few videos:

+3
source

Ryan Bates has some good Railscasts on these topics:

+3
source

, , Rspec, Rails , Shoulda. , , , Rspec. .

, , , - , , , pw, pw, right pw, , ..

, ZenTest gem. $ autotest, .

+1
source

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


All Articles