From 82870e4c0c63c1a40f4da8f7ab1ad298edf26b40 Mon Sep 17 00:00:00 2001 From: Daniel Bucher Date: Mon, 2 Dec 2013 18:50:22 -0200 Subject: [PATCH] events_controller_test: fixed test logic --- test/functional/events_controller_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/functional/events_controller_test.rb b/test/functional/events_controller_test.rb index 4aac7ee..072eeca 100644 --- a/test/functional/events_controller_test.rb +++ b/test/functional/events_controller_test.rb @@ -34,8 +34,8 @@ class EventsControllerTest < ActionController::TestCase next_month = Date.today + 1.month prev_month_name = prev_month.strftime("%B") next_month_name = next_month.strftime("%B") - assert_tag :tag =>'a', :attributes => {:href => "/profile/#{profile.identifier}/events/#{next_month.year}/#{prev_month.month}"}, :content => prev_month_name - assert_tag :tag =>'a', :attributes => {:href => "/profile/#{profile.identifier}/events/#{prev_month.year}/#{next_month.month}"}, :content => next_month_name + assert_tag :tag =>'a', :attributes => {:href => "/profile/#{profile.identifier}/events/#{prev_month.year}/#{prev_month.month}"}, :content => prev_month_name + assert_tag :tag =>'a', :attributes => {:href => "/profile/#{profile.identifier}/events/#{next_month.year}/#{next_month.month}"}, :content => next_month_name end end -- libgit2 0.21.2