From c4d596476bf9d9a4734b2f9dac7a4458e9204f78 Mon Sep 17 00:00:00 2001 From: tony Date: Thu, 19 Mar 2009 12:25:40 +0000 Subject: We don't care what actual count is, just that it's increased by one --- spec/controllers/track_controller_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'spec/controllers/track_controller_spec.rb') diff --git a/spec/controllers/track_controller_spec.rb b/spec/controllers/track_controller_spec.rb index a2092acc0..af5b8dba2 100644 --- a/spec/controllers/track_controller_spec.rb +++ b/spec/controllers/track_controller_spec.rb @@ -11,10 +11,10 @@ describe TrackController, "when making a new track on a request" do end it "should make track and redirect if you are logged in " do - TrackThing.count.should == 2 + old_count = TrackThing.count session[:user_id] = users(:bob_smith_user).id get :track_request, :url_title => info_requests(:fancy_dog_request).url_title, :feed => 'track' - TrackThing.count.should == 3 + TrackThing.count.should == old_count + 1 response.should redirect_to(:controller => 'request', :action => 'show', :url_title => info_requests(:fancy_dog_request).url_title) end -- cgit v1.2.3