ruby - Is there a new way to unit test Rails projects? -


I'm following the tutorials and everything is working fine as per the development.

For example, a test is as follows:

  requires Spec_helper "description" Home page "do this" to have the content 'sample app' Expect to visit '' / static_pages / home '' (page). At the end of Have_content ('Sample App') . . End of End  

To make the test work, I have to change it to "test_helper" but then when I type bundle exec

One test that I have been able to successfully run is the following: to 'test_helper' Class Required StaticPagesTest & lt; ActionDispatch :: IntegrationTest def test_connection "About / assert_response: Success," absent about page "assert_select 'title'," About us "and end

The test is parsed, the change in it, because it seems that the syntax is quite different. Do I need to do something different to get the "description" method to work, or is it a new way of completing the same work?

The first code uses block framework, while another uses a framework.


Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -