ruby on rails - In RSpec, what are Request Specs supposed to test? -


Here, on the other hand, trying to improve my test coverage.

A very basic but important question is just: What kind of tests have to go? The ideal test is straight ahead I need to test the functionality of model methods and assumptions. See the tests seem simple, it will only check that each view underlines the desired data.

Does it really confuse me what happens in my request glasses Since most of my rail experience has come from Michael Hartley's rail tutorial, his request glasses seem to be based on a series of tasks, Users who can take applications in. But he has also included tests which he should be in the space, which I am considering going elsewhere.

If someone can help me to understand what type of test goes in the request, then it will be useful.

to:

request thin glass cover around rail integration Provides testing, and is designed to drive behavior completely through a heap, in which routing (made by rail) and without worm (which is up to you).

With request specs, you can:

    Specify a single request
  • Specify several requests in many controllers
  • Specify multiple requests in multiple sessions

    Check rail documentation For further information, the integration test.

    By rail ':

    Integration test is used to test the interaction between any number of controllers. They are usually used to test important work flow within your application.

    If your examination is presented as a view (which should be fully decoded by any actual HTTP request) then it is probably better as a visual test . If it has to do with multiple views or multiple requests, then an integration test is probably more suitable.

Comments

Popular posts from this blog

php - PDO bindParam() fatal error -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -

java - Why my included JSP file won't get processed correctly? -