##// END OF EJS Templates
Rails4: fix PreviewsControllerTest assert_template failures...
Toshi MARUYAMA -
r12604:49e0489bc8f6
parent child
Show More
@@ -32,7 +32,7 class PreviewsControllerTest < ActionController::TestCase
32 @request.session[:user_id] = 2
32 @request.session[:user_id] = 2
33 post :issue, :project_id => '1', :issue => {:description => 'Foo'}
33 post :issue, :project_id => '1', :issue => {:description => 'Foo'}
34 assert_response :success
34 assert_response :success
35 assert_template 'preview'
35 assert_template 'previews/issue'
36 assert_not_nil assigns(:description)
36 assert_not_nil assigns(:description)
37 end
37 end
38
38
@@ -41,7 +41,7 class PreviewsControllerTest < ActionController::TestCase
41 post :issue, :project_id => '1', :id => 1,
41 post :issue, :project_id => '1', :id => 1,
42 :issue => {:description => Issue.find(1).description, :notes => 'Foo'}
42 :issue => {:description => Issue.find(1).description, :notes => 'Foo'}
43 assert_response :success
43 assert_response :success
44 assert_template 'preview'
44 assert_template 'previews/issue'
45 assert_not_nil assigns(:notes)
45 assert_not_nil assigns(:notes)
46 end
46 end
47
47
@@ -49,7 +49,7 class PreviewsControllerTest < ActionController::TestCase
49 @request.session[:user_id] = 2
49 @request.session[:user_id] = 2
50 post :issue, :project_id => '1', :id => 1, :notes => 'Foo'
50 post :issue, :project_id => '1', :id => 1, :notes => 'Foo'
51 assert_response :success
51 assert_response :success
52 assert_template 'preview'
52 assert_template 'previews/issue'
53 assert_not_nil assigns(:notes)
53 assert_not_nil assigns(:notes)
54 assert_tag :p, :content => 'Foo'
54 assert_tag :p, :content => 'Foo'
55 end
55 end
General Comments 0
You need to be logged in to leave comments. Login now