check_not_found_id_version(24356, create(:node).version)
end
- def check_not_found_id_version(id, version)
- get node_version_path(:id => id, :version => version)
- assert_response :not_found
- rescue ActionController::UrlGenerationError => e
- assert_match(/No route matches/, e.to_s)
- end
-
##
# Test that getting the current version is identical to picking
# that version with the version URI call.
assert_nodes_are_equal current_node, old_node
end
+ def check_not_found_id_version(id, version)
+ get node_version_path(:id => id, :version => version)
+ assert_response :not_found
+ rescue ActionController::UrlGenerationError => e
+ assert_match(/No route matches/, e.to_s)
+ end
+
##
# returns a 16 character long string with some nasty characters in it.
# this ought to stress-test the tag handling as well as the versioning.