X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/bf29550db840c97cafffbe1e836750bef6c7942d..f492a1b709b74f0bb36821864090657f6026f9f2:/test/functional/browse_controller_test.rb?ds=inline diff --git a/test/functional/browse_controller_test.rb b/test/functional/browse_controller_test.rb index 65e851011..c5a333c0d 100644 --- a/test/functional/browse_controller_test.rb +++ b/test/functional/browse_controller_test.rb @@ -18,23 +18,6 @@ class BrowseControllerTest < ActionController::TestCase end - # This should display the last 20 nodes that were edited. - def test_index - @nodes = Node.find(:all, :order => "timestamp DESC", :limit => 20) - assert @nodes.size <= 20 - get :index - assert_response :success - assert_template "index" - # Now check that all 20 (or however many were returned) nodes are in the html - assert_select "h2", :text => "#{@nodes.size} Recently Changed Nodes", :count => 1 - assert_select "ul[id='recently_changed'] li a", :count => @nodes.size - @nodes.each do |node| - name = node.tags_as_hash['name'].to_s - name = "(No name)" if name.length == 0 - assert_select "ul[id='recently_changed'] li a[href=/browse/node/#{node.id}]", :text => "#{name} - #{node.id} (#{node.version})" - end - end - # Test reading a relation def test_read_relation