Permalink
Browse files

Shucks, thy shall not change code AFTER testing

  • Loading branch information...
1 parent c05574d commit c316813408f6e6f1f73921a57019973a8f883e47 @EinLama EinLama committed Nov 21, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 test/functional/events_controller_test.rb
@@ -14,7 +14,7 @@ class EventsControllerTest < ActionController::TestCase
single_event = FactoryGirl.create(:single_event, event: event)
Event.expects(:find).with(event.id.to_s).returns(event)
- event.expects(:closest_single_event).with(Date.new).returns(single_event)
+ event.expects(:closest_single_event).returns(single_event)
get :show, id: event.id
assert_redirected_to event_single_event_path(event, single_event)

0 comments on commit c316813

Please sign in to comment.