Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- describe ArticlesController do
- describe 'GET #new' do
- it 'assigns a new article' do
- get :new
- expect(assigns[:article]).to be_a(Article)
- end
- it 'renders new article template' do
- get :new
- expect(response).to render_template :new
- end
- end
- descrbe 'GET #new', :aggregate_failures do
- it 'assigns new article and renders new article template' do
- get :new
- expect(assigns[:article]).to be_a(Article)
- expect(response).to render_template :new
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement