aboutsummaryrefslogtreecommitdiffstats
path: root/spec/controllers/track_controller_spec.rb
diff options
context:
space:
mode:
authortony <tony>2009-03-19 12:25:40 +0000
committertony <tony>2009-03-19 12:25:40 +0000
commitc4d596476bf9d9a4734b2f9dac7a4458e9204f78 (patch)
tree0cec034731260ce83a37280d9aab9bd229938746 /spec/controllers/track_controller_spec.rb
parent0bbb236b5c12320db52ff075c164861961eeae5e (diff)
We don't care what actual count is, just that it's increased by one
Diffstat (limited to 'spec/controllers/track_controller_spec.rb')
-rw-r--r--spec/controllers/track_controller_spec.rb4
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