diff options
Diffstat (limited to 'spec/controllers/track_controller_spec.rb')
-rw-r--r-- | spec/controllers/track_controller_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
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 |