Advertisement
Guest User

Untitled

a guest
Aug 20th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. describe ArticlesController do
  2. describe 'GET #new' do
  3. it 'assigns a new article' do
  4. get :new
  5.  
  6. expect(assigns[:article]).to be_a(Article)
  7. end
  8.  
  9. it 'renders new article template' do
  10. get :new
  11.  
  12. expect(response).to render_template :new
  13. end
  14. end
  15.  
  16. descrbe 'GET #new', :aggregate_failures do
  17. it 'assigns new article and renders new article template' do
  18. get :new
  19.  
  20. expect(assigns[:article]).to be_a(Article)
  21. expect(response).to render_template :new
  22. end
  23. end
  24. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement