summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/controllers/revisions_controller_test.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/controllers/revisions_controller_test.rb b/test/controllers/revisions_controller_test.rb
index 53927b4..76d4e8c 100644
--- a/test/controllers/revisions_controller_test.rb
+++ b/test/controllers/revisions_controller_test.rb
@@ -161,4 +161,11 @@ class RevisionsControllerTest < ActionController::TestCase
161 assert_select "h3", "Template" 161 assert_select "h3", "Template"
162 assert_select "h3", "Assets" 162 assert_select "h3", "Assets"
163 end 163 end
164
165 test "revisions#index links back to the node" do
166 login_as :quentin
167 get :index, params: { :node_id => @node.id }
168 assert_response :success
169 assert_select "a[href=?]", node_path(@node)
170 end
164end 171end