]> git.openstreetmap.org Git - rails.git/blob - test/system/history_test.rb
Merge remote-tracking branch 'upstream/pull/3758'
[rails.git] / test / system / history_test.rb
1 require "application_system_test_case"
2
3 class HistoryTest < ApplicationSystemTestCase
4   test "atom link on user's history is not modified" do
5     user = create(:user)
6     create(:changeset, :user => user, :num_changes => 1) do |changeset|
7       create(:changeset_tag, :changeset => changeset, :k => "comment", :v => "first-changeset-in-history")
8     end
9
10     visit "#{user_path(user)}/history"
11     changesets = find "div.changesets"
12     changesets.assert_text "first-changeset-in-history"
13
14     assert_css "link[type='application/atom+xml'][href$='#{user_path(user)}/history/feed']", :visible => false
15   end
16 end