muck-friends 0.1.6 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Rakefile +0 -1
- data/VERSION +1 -1
- data/app/controllers/muck/friends_controller.rb +65 -45
- data/app/helpers/muck_friends_helper.rb +2 -2
- data/app/models/friend_mailer.rb +1 -0
- data/app/views/friends/_friend_icon.html.erb +1 -1
- data/app/views/friends/_friend_tiny_icon.html.erb +1 -0
- data/lib/active_record/acts/muck_friend.rb +24 -14
- data/lib/active_record/acts/muck_friend_user.rb +4 -5
- data/lib/muck_friends.rb +2 -2
- data/locales/ar.yml +17 -9
- data/locales/bg.yml +18 -10
- data/locales/ca.yml +17 -9
- data/locales/cs.yml +17 -9
- data/locales/da.yml +17 -9
- data/locales/de.yml +17 -9
- data/locales/el.yml +17 -9
- data/locales/en.yml +2 -2
- data/locales/es.yml +17 -9
- data/locales/et.yml +17 -9
- data/locales/fa.yml +17 -9
- data/locales/fi.yml +17 -9
- data/locales/fr.yml +17 -9
- data/locales/gl.yml +18 -10
- data/locales/hi.yml +17 -9
- data/locales/hr.yml +17 -9
- data/locales/hu.yml +17 -9
- data/locales/id.yml +17 -9
- data/locales/it.yml +17 -9
- data/locales/iw.yml +17 -9
- data/locales/ja.yml +17 -9
- data/locales/ko.yml +17 -9
- data/locales/lt.yml +17 -9
- data/locales/lv.yml +17 -9
- data/locales/mt.yml +17 -9
- data/locales/nl.yml +17 -9
- data/locales/no.yml +17 -9
- data/locales/pl.yml +17 -9
- data/locales/pt-PT.yml +17 -9
- data/locales/ro.yml +17 -9
- data/locales/ru.yml +17 -9
- data/locales/sk.yml +17 -9
- data/locales/sl.yml +17 -9
- data/locales/sq.yml +17 -9
- data/locales/sr.yml +17 -9
- data/locales/sv.yml +17 -9
- data/locales/th.yml +17 -9
- data/locales/tl.yml +17 -9
- data/locales/tr.yml +18 -10
- data/locales/uk.yml +17 -9
- data/locales/vi.yml +17 -9
- data/locales/zh-CN.yml +17 -9
- data/locales/zh-TW.yml +17 -9
- data/locales/zh.yml +17 -9
- data/muck-friends.gemspec +3 -2
- data/test/rails_root/test/functional/default_controller_test.rb +3 -3
- data/test/rails_root/test/unit/friend_test.rb +118 -125
- data/test/rails_root/test/unit/user_test.rb +3 -3
- metadata +3 -2
@@ -91,14 +91,14 @@ class UserTest < ActiveSupport::TestCase
|
|
91
91
|
setup do
|
92
92
|
assert @quentin.follow(@aaron)
|
93
93
|
end
|
94
|
-
should "stop following the user" do
|
94
|
+
should "stop following the other user but retain follow for other user " do
|
95
95
|
assert @aaron.become_friends_with(@quentin)
|
96
96
|
assert @quentin.drop_friend(@aaron)
|
97
97
|
assert !@quentin.followings.any?{|f| f.id == @aaron.id}
|
98
98
|
assert @aaron.followings.any?{|f| f.id == @quentin.id}
|
99
99
|
end
|
100
|
-
should "stop being friends with the user but retain follow" do
|
101
|
-
assert
|
100
|
+
should "stop being friends with the user but retain follow for other user" do
|
101
|
+
assert !@quentin.drop_friend(@aaron) # @aaron wasn't following @quentin so drop_friend will return false indicating that a friend object wasn't found to let @aaron continue following @quentin
|
102
102
|
assert !@quentin.followings.any?{|f| f.id == @aaron.id}
|
103
103
|
end
|
104
104
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: muck-friends
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Ball
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-08-
|
12
|
+
date: 2009-08-13 00:00:00 -06:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -69,6 +69,7 @@ files:
|
|
69
69
|
- app/views/friends/_friend_icon.html.erb
|
70
70
|
- app/views/friends/_friend_requests.html.erb
|
71
71
|
- app/views/friends/_friend_simple.html.erb
|
72
|
+
- app/views/friends/_friend_tiny_icon.html.erb
|
72
73
|
- app/views/friends/_mutual_friends.html.erb
|
73
74
|
- app/views/friends/index.html.erb
|
74
75
|
- config/muck_friends_routes.rb
|