git clone git://github.com/robbyrussell/rubyurl.git
Fixed that visits weren't associated with links even though it looks like it was designed for them to be associated.
...15161718 192021
...151617 18192021
0@@ -15,7 +15,7 @@ class Link < ActiveRecord::Base0 end0 0 def add_visit(request)0- visit = Visit.new0+ visit = visits.build0 visit.ip_address = request.remote_ip0 visit.save0 return visit
...36373839 404142
...363738 39404142
0@@ -36,7 +36,7 @@ describe "Planet Argon link " do0 request.stub!(:remote_ip).and_return('127.0.0.1')0 lambda do0 @link.add_visit(request)0- end.should change(Visit, :count).by(1)0+ end.should change (@link.visits, :count).by(1)0 end0 end0
No one has commented yet.
Add a comment:
Comments
No one has commented yet.