How do I test a controller with rspec-rails? -
I want to test that my editing recipe page uses RSPC, although it is not root for
My current test looks like this
Pre> In your example, the code required to actually test the controller object does not include the resize controller in your imagination. Ensure that your controller stays under specs / controllers or is set to clear Description "Show recipe to edit" "edit it should display the recipe page" Get: Edit Feedback Should have feedback. Render_template render_template (edit) Ending
problem < P>
Solution
type: controller after that, in fact a controller Describes, either using the built-in subject or establishing a controller instance in the first or test block. As the most basic example:
Describe RecipeController # Take a few tests using the RecipeController.new end
read more
Comments
Post a Comment