public
Description: The open source social networking platform in Ruby on Rails from the author of RailsSpace
Homepage: http://insoshi.com
Clone URL: git://github.com/insoshi/insoshi.git
Search Repo:
Fixed profile change activity test
Michael Hartl (author)
Wed May 07 11:41:50 -0700 2008
commit  56c8c3d469f0093a8673e17c522dc8edeca283dc
tree    f3f812c748dc669ca41316d58233256624b675b6
parent  bed284102076d75fb69919df5778f31b6cc43b32
...
32
33
34
35
 
36
37
38
39
40
 
41
42
43
44
45
46
 
47
48
49
...
32
33
34
 
35
36
37
38
39
 
40
41
42
43
44
45
 
46
47
48
49
0
@@ -32,18 +32,18 @@
0
     end
0
   end
0
   
0
- describe "person activity associations" do
0
+ describe "activity associations" do
0
     
0
     it "should log an activity if description changed" do
0
       @person.update_attributes(:description => "New Description")
0
       activity = Activity.find_by_item_id(@person)
0
- @person.activities.include?(activity).should == true
0
+ Activity.global_feed.include?(activity).should == true
0
     end
0
     
0
     it "should not log an activity if description didn't change" do
0
       @person.save!
0
       activity = Activity.find_by_item_id(@person)
0
- @person.activities.include?(activity).should == false
0
+ Activity.global_feed.include?(activity).should == false
0
     end
0
     
0
   end

Comments

    No one has commented yet.