Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
dnrce committed May 22, 2016
1 parent 20e47fe commit 4b6589a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
3 changes: 1 addition & 2 deletions test/controllers/contexts_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,8 @@ def test_atom_feed_content
login_as :admin_user
get :index, { :format => "atom" }
assert_equal 'application/atom+xml', @response.content_type
#puts @response.body

assert_select 'feed[xmlns="http://www.w3.org/2005/Atom"]' do
assert_select 'feed' do
assert_select '>title', 'Tracks Contexts'
assert_select '>subtitle', "Lists all the contexts for #{users(:admin_user).display_name}"
assert_select 'entry', 10 do
Expand Down
2 changes: 1 addition & 1 deletion test/controllers/feedlist_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ def test_get_feeds_for_project_using_xhr
assert_response 200
end

end
end
3 changes: 1 addition & 2 deletions test/controllers/projects_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,8 @@ def test_atom_feed_content
login_as :admin_user
get :index, { :format => "atom" }
assert_equal 'application/atom+xml', @response.content_type
# puts @response.body

assert_select 'feed[xmlns="http://www.w3.org/2005/Atom"]' do
assert_select 'feed' do
assert_select '>title', 'Tracks Projects'
assert_select '>subtitle', "Lists all the projects for #{users(:admin_user).display_name}"
assert_select 'entry', 3 do
Expand Down
3 changes: 1 addition & 2 deletions test/controllers/todos_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -522,9 +522,8 @@ def test_atom_feed_content
login_as :admin_user
get :index, { :format => "atom" }
assert_equal 'application/atom+xml', @response.content_type
# #puts @response.body

assert_select 'feed[xmlns="http://www.w3.org/2005/Atom"]' do
assert_select 'feed' do
assert_select '>title', 'Tracks Actions'
assert_select '>subtitle', "Actions for #{users(:admin_user).display_name}"
assert_select 'entry', 17 do
Expand Down

0 comments on commit 4b6589a

Please sign in to comment.