Skip to content
This repository has been archived by the owner on Jun 7, 2021. It is now read-only.

Commit

Permalink
Made test more specific regarding what links it expects to be displayed
Browse files Browse the repository at this point in the history
  • Loading branch information
Errol Siegel committed Jun 30, 2009
1 parent 233a73f commit e1fa538
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/functional/events_controller_test.rb
Expand Up @@ -68,14 +68,14 @@ def test_should_destroy_event
def test_index_should_show_link_to_past_only
login_as :admin
get :index
assert_tag :tag=>'a', :attributes=>{:href=>'/events/past'}
assert_no_tag :tag=>'a', :attributes=>{:href=>'/events'}
assert_tag :tag=>'a', :attributes=>{:href=>'/events/past'}, :content=>:past_events.l
assert_no_tag :tag=>'a', :attributes=>{:href=>'/events'}, :content=>:upcoming_events.l
end

def test_past_should_show_link_to_index_only
login_as :admin
get :past
assert_no_tag :tag=>'a', :attributes=>{:href=>'/events/past'}
assert_tag :tag=>'a', :attributes=>{:href=>'/events'}
assert_no_tag :tag=>'a', :attributes=>{:href=>'/events/past'}, :content=>:past_events.l
assert_tag :tag=>'a', :attributes=>{:href=>'/events'}, :content=>:upcoming_events.l
end
end

0 comments on commit e1fa538

Please sign in to comment.