We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88d011d commit 3301dc0Copy full SHA for 3301dc0
test/functional/wiki_controller_test.rb
@@ -186,6 +186,21 @@ def test_show_protected_page_shoud_show_locked_badge
186
end
187
188
189
+ def test_show_delete_redirect_links
190
+ @request.session[:user_id] = 2
191
+
192
+ wiki_page = WikiPage.find_by(title: 'CookBook_documentation')
193
+ new_title = 'New_Cookbook'
194
+ wiki_page.title = new_title
195
+ wiki_page.save
196
197
+ get :show, :params => {:project_id => 1, :id => new_title}
198
199
+ assert_select '.drdn-items' do
200
+ assert_select 'a.icon-link-break', text: 'Delete redirect from CookBook_documentation'
201
+ end
202
203
204
def test_get_new
205
@request.session[:user_id] = 2
206
0 commit comments