inkwell 1.1.1 → 1.1.7
Sign up to get free protection for your applications and to get access to all the features.
- data/db/migrate/20130212130878_change_community_table_for_adding_types_and_user_access.rb +14 -0
- data/lib/acts_as_inkwell_community/base.rb +212 -43
- data/lib/acts_as_inkwell_user/base.rb +44 -2
- data/lib/common/base.rb +11 -0
- data/lib/inkwell/version.rb +1 -1
- data/test/dummy/app/models/community.rb +1 -1
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/migrate/20130217135512_change_community_table_for_adding_types_and_user_access.inkwell.rb +15 -0
- data/test/dummy/db/schema.rb +16 -11
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +1501 -0
- data/test/dummy/log/test.log +0 -0
- data/test/dummy/spec/functional/community_spec.rb +907 -35
- data/test/dummy_without_community/db/development.sqlite3 +0 -0
- data/test/dummy_without_community/db/migrate/20130219152805_rename_parent_id_to_parent_comment_id_in_comment_table.inkwell.rb +6 -0
- data/test/dummy_without_community/db/migrate/20130219152806_change_community_table_for_adding_types_and_user_access.inkwell.rb +15 -0
- data/test/dummy_without_community/db/schema.rb +2 -2
- data/test/dummy_without_community/db/test.sqlite3 +0 -0
- data/test/dummy_without_community/log/development.log +58 -0
- data/test/dummy_without_community/log/test.log +8777 -0
- data/test/dummy_without_community/spec/functional/comments_spec.rb +52 -52
- metadata +21 -14
@@ -67,7 +67,7 @@ describe "Comments" do
|
|
67
67
|
@comment = @salkar.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post)
|
68
68
|
@comment1 = @morozovm.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post)
|
69
69
|
@comment2 = @salkar.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post)
|
70
|
-
@comment3 = @morozovm.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :
|
70
|
+
@comment3 = @morozovm.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :parent_comment_id => @comment1.id)
|
71
71
|
@comment4 = @salkar.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post)
|
72
72
|
@comment5 = @morozovm.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post)
|
73
73
|
@comment6 = @morozovm.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post)
|
@@ -102,9 +102,9 @@ describe "Comments" do
|
|
102
102
|
::Inkwell::Comment.all.size.should == 0
|
103
103
|
end
|
104
104
|
|
105
|
-
it "2 comments with
|
105
|
+
it "2 comments with parent_comment_id should been created" do
|
106
106
|
@salkar_comment = @salkar.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post)
|
107
|
-
@morozovm_comment = @morozovm.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :
|
107
|
+
@morozovm_comment = @morozovm.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :parent_comment_id => @salkar_comment.id)
|
108
108
|
@salkar_comment = ::Inkwell::Comment.find @salkar_comment
|
109
109
|
@morozovm_comment = ::Inkwell::Comment.find @morozovm_comment
|
110
110
|
@salkar_post.reload
|
@@ -119,11 +119,11 @@ describe "Comments" do
|
|
119
119
|
|
120
120
|
it "7 comments should been created" do
|
121
121
|
@salkar_comment = @salkar.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post)
|
122
|
-
@morozovm_comment = @morozovm.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :
|
122
|
+
@morozovm_comment = @morozovm.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :parent_comment_id => @salkar_comment.id)
|
123
123
|
@salkar_comment1 = @salkar.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post)
|
124
|
-
@morozovm_comment1 = @morozovm.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :
|
124
|
+
@morozovm_comment1 = @morozovm.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :parent_comment_id => @salkar_comment.id)
|
125
125
|
@salkar_comment2 = @salkar.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post)
|
126
|
-
@morozovm_comment2 = @morozovm.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :
|
126
|
+
@morozovm_comment2 = @morozovm.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :parent_comment_id => @salkar_comment.id)
|
127
127
|
@salkar_comment3 = @salkar.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post)
|
128
128
|
@salkar_post.reload
|
129
129
|
users_ids_who_comment_it = ActiveSupport::JSON.decode(@salkar_post.users_ids_who_comment_it)
|
@@ -172,7 +172,7 @@ describe "Comments" do
|
|
172
172
|
|
173
173
|
it "1 comments should been deleted from post with parent comment" do
|
174
174
|
@comment = @salkar.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post)
|
175
|
-
@comment_to_delete = @morozovm.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :
|
175
|
+
@comment_to_delete = @morozovm.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :parent_comment_id => @comment.id)
|
176
176
|
@salkar_post.reload
|
177
177
|
users_ids_who_comment_it = ActiveSupport::JSON.decode(@salkar_post.users_ids_who_comment_it)
|
178
178
|
users_ids_who_comment_it.should == [{"user_id" => @salkar.id, "comment_id" => @comment.id}, {"user_id" => @morozovm.id, "comment_id" => @comment_to_delete.id}]
|
@@ -203,7 +203,7 @@ describe "Comments" do
|
|
203
203
|
|
204
204
|
it "2 comments should been deleted from post with parent comment" do
|
205
205
|
@comment = @salkar.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post)
|
206
|
-
@comment2 = @morozovm.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :
|
206
|
+
@comment2 = @morozovm.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :parent_comment_id => @comment.id)
|
207
207
|
@salkar_post.reload
|
208
208
|
users_ids_who_comment_it = ActiveSupport::JSON.decode(@salkar_post.users_ids_who_comment_it)
|
209
209
|
users_ids_who_comment_it.should == [{"user_id" => @salkar.id, "comment_id" => @comment.id}, {"user_id" => @morozovm.id, "comment_id" => @comment2.id}]
|
@@ -232,9 +232,9 @@ describe "Comments" do
|
|
232
232
|
|
233
233
|
it "4 comments should been deleted from post with parent comment" do
|
234
234
|
@comment = @salkar.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post)
|
235
|
-
@comment2 = @morozovm.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :
|
236
|
-
@comment2 = @morozovm.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :
|
237
|
-
@comment3 = @morozovm.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :
|
235
|
+
@comment2 = @morozovm.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :parent_comment_id => @comment.id)
|
236
|
+
@comment2 = @morozovm.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :parent_comment_id => @comment2.id)
|
237
|
+
@comment3 = @morozovm.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :parent_comment_id => @comment.id)
|
238
238
|
@salkar_post.reload
|
239
239
|
users_ids_who_comment_it = ActiveSupport::JSON.decode(@salkar_post.users_ids_who_comment_it)
|
240
240
|
users_ids_who_comment_it.size.should == 4
|
@@ -263,17 +263,17 @@ describe "Comments" do
|
|
263
263
|
|
264
264
|
it "commentline for comment should been returned (comments for 1 comment)" do
|
265
265
|
@comment = @salkar.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post)
|
266
|
-
@comment1 = @morozovm.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :
|
267
|
-
@comment2 = @salkar.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :
|
268
|
-
@comment3 = @morozovm.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :
|
269
|
-
@comment4 = @salkar.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :
|
270
|
-
@comment5 = @morozovm.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :
|
271
|
-
@comment6 = @morozovm.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :
|
272
|
-
@comment7 = @salkar.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :
|
273
|
-
@comment8 = @salkar.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :
|
274
|
-
@comment9 = @morozovm.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :
|
275
|
-
@comment10 = @salkar.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :
|
276
|
-
@comment11 = @morozovm.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :
|
266
|
+
@comment1 = @morozovm.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :parent_comment_id => @comment.id)
|
267
|
+
@comment2 = @salkar.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :parent_comment_id => @comment.id)
|
268
|
+
@comment3 = @morozovm.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :parent_comment_id => @comment.id)
|
269
|
+
@comment4 = @salkar.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :parent_comment_id => @comment.id)
|
270
|
+
@comment5 = @morozovm.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :parent_comment_id => @comment.id)
|
271
|
+
@comment6 = @morozovm.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :parent_comment_id => @comment.id)
|
272
|
+
@comment7 = @salkar.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :parent_comment_id => @comment.id)
|
273
|
+
@comment8 = @salkar.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :parent_comment_id => @comment.id)
|
274
|
+
@comment9 = @morozovm.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :parent_comment_id => @comment.id)
|
275
|
+
@comment10 = @salkar.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :parent_comment_id => @comment.id)
|
276
|
+
@comment11 = @morozovm.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :parent_comment_id => @comment.id)
|
277
277
|
|
278
278
|
@comment.reload
|
279
279
|
commentline = @comment.commentline
|
@@ -289,17 +289,17 @@ describe "Comments" do
|
|
289
289
|
|
290
290
|
it "commentline for comment should been returned (comments for several comments)" do
|
291
291
|
@comment = @salkar.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post)
|
292
|
-
@comment1 = @morozovm.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :
|
293
|
-
@comment2 = @salkar.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :
|
294
|
-
@comment3 = @morozovm.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :
|
295
|
-
@comment4 = @salkar.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :
|
296
|
-
@comment5 = @morozovm.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :
|
297
|
-
@comment6 = @morozovm.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :
|
298
|
-
@comment7 = @salkar.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :
|
299
|
-
@comment8 = @salkar.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :
|
300
|
-
@comment9 = @morozovm.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :
|
301
|
-
@comment10 = @salkar.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :
|
302
|
-
@comment11 = @morozovm.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :
|
292
|
+
@comment1 = @morozovm.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :parent_comment_id => @comment.id)
|
293
|
+
@comment2 = @salkar.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :parent_comment_id => @comment.id)
|
294
|
+
@comment3 = @morozovm.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :parent_comment_id => @comment1.id)
|
295
|
+
@comment4 = @salkar.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :parent_comment_id => @comment2.id)
|
296
|
+
@comment5 = @morozovm.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :parent_comment_id => @comment.id)
|
297
|
+
@comment6 = @morozovm.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :parent_comment_id => @comment3.id)
|
298
|
+
@comment7 = @salkar.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :parent_comment_id => @comment2.id)
|
299
|
+
@comment8 = @salkar.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :parent_comment_id => @comment.id)
|
300
|
+
@comment9 = @morozovm.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :parent_comment_id => @comment5.id)
|
301
|
+
@comment10 = @salkar.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :parent_comment_id => @comment4.id)
|
302
|
+
@comment11 = @morozovm.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :parent_comment_id => @comment.id)
|
303
303
|
|
304
304
|
@comment.reload
|
305
305
|
commentline = @comment.commentline
|
@@ -315,17 +315,17 @@ describe "Comments" do
|
|
315
315
|
|
316
316
|
it "5 comments for comment should been received" do
|
317
317
|
@comment = @salkar.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post)
|
318
|
-
@comment1 = @morozovm.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :
|
319
|
-
@comment2 = @salkar.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :
|
320
|
-
@comment3 = @morozovm.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :
|
321
|
-
@comment4 = @salkar.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :
|
322
|
-
@comment5 = @morozovm.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :
|
323
|
-
@comment6 = @morozovm.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :
|
324
|
-
@comment7 = @salkar.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :
|
325
|
-
@comment8 = @salkar.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :
|
326
|
-
@comment9 = @morozovm.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :
|
327
|
-
@comment10 = @salkar.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :
|
328
|
-
@comment11 = @morozovm.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :
|
318
|
+
@comment1 = @morozovm.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :parent_comment_id => @comment.id)
|
319
|
+
@comment2 = @salkar.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :parent_comment_id => @comment.id)
|
320
|
+
@comment3 = @morozovm.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :parent_comment_id => @comment1.id)
|
321
|
+
@comment4 = @salkar.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :parent_comment_id => @comment2.id)
|
322
|
+
@comment5 = @morozovm.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :parent_comment_id => @comment.id)
|
323
|
+
@comment6 = @morozovm.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :parent_comment_id => @comment3.id)
|
324
|
+
@comment7 = @salkar.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :parent_comment_id => @comment2.id)
|
325
|
+
@comment8 = @salkar.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :parent_comment_id => @comment.id)
|
326
|
+
@comment9 = @morozovm.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :parent_comment_id => @comment5.id)
|
327
|
+
@comment10 = @salkar.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :parent_comment_id => @comment4.id)
|
328
|
+
@comment11 = @morozovm.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :parent_comment_id => @comment.id)
|
329
329
|
|
330
330
|
@comment.reload
|
331
331
|
commentline = @comment.commentline :limit => 5
|
@@ -348,8 +348,8 @@ describe "Comments" do
|
|
348
348
|
|
349
349
|
it "is_favorited should been returned in commentline for comment for for_user" do
|
350
350
|
@comment = @salkar.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post)
|
351
|
-
@comment1 = @morozovm.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :
|
352
|
-
@comment2 = @salkar.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :
|
351
|
+
@comment1 = @morozovm.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :parent_comment_id => @comment.id)
|
352
|
+
@comment2 = @salkar.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :parent_comment_id => @comment.id)
|
353
353
|
@salkar.favorite @comment1
|
354
354
|
@morozovm.favorite @comment2
|
355
355
|
|
@@ -369,8 +369,8 @@ describe "Comments" do
|
|
369
369
|
|
370
370
|
it "is_favorited should been returned in commentline for post for for_user" do
|
371
371
|
@comment = @salkar.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post)
|
372
|
-
@comment1 = @morozovm.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :
|
373
|
-
@comment2 = @salkar.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :
|
372
|
+
@comment1 = @morozovm.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :parent_comment_id => @comment.id)
|
373
|
+
@comment2 = @salkar.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :parent_comment_id => @comment.id)
|
374
374
|
@salkar.favorite @comment1
|
375
375
|
@morozovm.favorite @comment2
|
376
376
|
|
@@ -392,8 +392,8 @@ describe "Comments" do
|
|
392
392
|
::Inkwell::Comment.where(:topmost_obj_id => @salkar_post.id, :topmost_obj_type => ::Inkwell::Constants::ItemTypes::POST).size.should == 0
|
393
393
|
@salkar_post.comment_count.should == 0
|
394
394
|
@comment = @salkar.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post)
|
395
|
-
@comment1 = @morozovm.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :
|
396
|
-
@comment2 = @salkar.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :
|
395
|
+
@comment1 = @morozovm.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :parent_comment_id => @comment.id)
|
396
|
+
@comment2 = @salkar.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :parent_comment_id => @comment.id)
|
397
397
|
@salkar_post.reload
|
398
398
|
::Inkwell::Comment.where(:topmost_obj_id => @salkar_post.id, :topmost_obj_type => ::Inkwell::Constants::ItemTypes::POST).size.should == 3
|
399
399
|
@salkar_post.comment_count.should == 3
|
@@ -403,8 +403,8 @@ describe "Comments" do
|
|
403
403
|
@comment = @salkar.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post)
|
404
404
|
@comment.reload
|
405
405
|
@comment.comment_count.should == 0
|
406
|
-
@comment1 = @morozovm.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :
|
407
|
-
@comment2 = @salkar.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :
|
406
|
+
@comment1 = @morozovm.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :parent_comment_id => @comment.id)
|
407
|
+
@comment2 = @salkar.create_comment(:body => 'Lets You Party Like a Facebook User', :for_object => @salkar_post, :parent_comment_id => @comment.id)
|
408
408
|
@comment.reload
|
409
409
|
@comment.comment_count.should == 2
|
410
410
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: inkwell
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.7
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-02-
|
12
|
+
date: 2013-02-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: railties
|
16
|
-
requirement: &
|
16
|
+
requirement: &85183340 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 3.1.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *85183340
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: activerecord
|
27
|
-
requirement: &
|
27
|
+
requirement: &85182150 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: 3.1.0
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *85182150
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rspec-rails
|
38
|
-
requirement: &
|
38
|
+
requirement: &85180980 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *85180980
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: database_cleaner
|
49
|
-
requirement: &
|
49
|
+
requirement: &85180280 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: '0'
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *85180280
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: sqlite3
|
60
|
-
requirement: &
|
60
|
+
requirement: &85196230 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ! '>='
|
@@ -65,10 +65,10 @@ dependencies:
|
|
65
65
|
version: '0'
|
66
66
|
type: :development
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *85196230
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rails
|
71
|
-
requirement: &
|
71
|
+
requirement: &85193900 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
74
|
- - ! '>='
|
@@ -76,7 +76,7 @@ dependencies:
|
|
76
76
|
version: 3.1.0
|
77
77
|
type: :development
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *85193900
|
80
80
|
description: Inkwell provides simple way to add social networking features like comments,
|
81
81
|
reblogs, favorites, following/followers, communities and timelines to your Ruby
|
82
82
|
on Rails application.
|
@@ -108,6 +108,7 @@ files:
|
|
108
108
|
- db/migrate/20130212130858_refactor_comment_table.rb
|
109
109
|
- db/migrate/20130202130020_add_community_ids_to_post.rb
|
110
110
|
- db/migrate/20130202130040_add_owner_type_to_lines.rb
|
111
|
+
- db/migrate/20130212130878_change_community_table_for_adding_types_and_user_access.rb
|
111
112
|
- lib/inkwell/version.rb
|
112
113
|
- lib/inkwell/engine.rb
|
113
114
|
- lib/common/base.rb
|
@@ -167,6 +168,7 @@ files:
|
|
167
168
|
- test/dummy_without_community/db/schema.rb
|
168
169
|
- test/dummy_without_community/db/seeds.rb
|
169
170
|
- test/dummy_without_community/db/test.sqlite3
|
171
|
+
- test/dummy_without_community/db/migrate/20130219152805_rename_parent_id_to_parent_comment_id_in_comment_table.inkwell.rb
|
170
172
|
- test/dummy_without_community/db/migrate/20130208134749_change_tables_for_communities.inkwell.rb
|
171
173
|
- test/dummy_without_community/db/migrate/20130213115835_refactor_comment_table.inkwell.rb
|
172
174
|
- test/dummy_without_community/db/migrate/20130208134745_create_inkwell_blog_items.inkwell.rb
|
@@ -176,6 +178,7 @@ files:
|
|
176
178
|
- test/dummy_without_community/db/migrate/20130213115834_add_owner_type_to_lines.inkwell.rb
|
177
179
|
- test/dummy_without_community/db/migrate/20130213115833_change_is_comment_to_item_type.inkwell.rb
|
178
180
|
- test/dummy_without_community/db/migrate/20130208134744_add_columns_to_posts.inkwell.rb
|
181
|
+
- test/dummy_without_community/db/migrate/20130219152806_change_community_table_for_adding_types_and_user_access.inkwell.rb
|
179
182
|
- test/dummy_without_community/db/migrate/20130208134746_create_inkwell_favorite_items.inkwell.rb
|
180
183
|
- test/dummy_without_community/db/migrate/20121202111750_create_posts.rb
|
181
184
|
- test/dummy_without_community/db/migrate/20130208134750_add_community_ids_to_post.inkwell.rb
|
@@ -246,6 +249,7 @@ files:
|
|
246
249
|
- test/dummy/db/migrate/20130208134952_add_columns_to_users.inkwell.rb
|
247
250
|
- test/dummy/db/migrate/20130212130848_add_owner_type_to_lines.inkwell.rb
|
248
251
|
- test/dummy/db/migrate/20130213121414_rename_parent_id_to_parent_comment_id_in_comment_table.inkwell.rb
|
252
|
+
- test/dummy/db/migrate/20130217135512_change_community_table_for_adding_types_and_user_access.inkwell.rb
|
249
253
|
- test/dummy/db/migrate/20130208134954_change_tables_for_communities.inkwell.rb
|
250
254
|
- test/dummy/db/migrate/20130201155147_create_communities.rb
|
251
255
|
- test/dummy/db/migrate/20130208134950_create_inkwell_blog_items.inkwell.rb
|
@@ -336,6 +340,7 @@ test_files:
|
|
336
340
|
- test/dummy_without_community/db/schema.rb
|
337
341
|
- test/dummy_without_community/db/seeds.rb
|
338
342
|
- test/dummy_without_community/db/test.sqlite3
|
343
|
+
- test/dummy_without_community/db/migrate/20130219152805_rename_parent_id_to_parent_comment_id_in_comment_table.inkwell.rb
|
339
344
|
- test/dummy_without_community/db/migrate/20130208134749_change_tables_for_communities.inkwell.rb
|
340
345
|
- test/dummy_without_community/db/migrate/20130213115835_refactor_comment_table.inkwell.rb
|
341
346
|
- test/dummy_without_community/db/migrate/20130208134745_create_inkwell_blog_items.inkwell.rb
|
@@ -345,6 +350,7 @@ test_files:
|
|
345
350
|
- test/dummy_without_community/db/migrate/20130213115834_add_owner_type_to_lines.inkwell.rb
|
346
351
|
- test/dummy_without_community/db/migrate/20130213115833_change_is_comment_to_item_type.inkwell.rb
|
347
352
|
- test/dummy_without_community/db/migrate/20130208134744_add_columns_to_posts.inkwell.rb
|
353
|
+
- test/dummy_without_community/db/migrate/20130219152806_change_community_table_for_adding_types_and_user_access.inkwell.rb
|
348
354
|
- test/dummy_without_community/db/migrate/20130208134746_create_inkwell_favorite_items.inkwell.rb
|
349
355
|
- test/dummy_without_community/db/migrate/20121202111750_create_posts.rb
|
350
356
|
- test/dummy_without_community/db/migrate/20130208134750_add_community_ids_to_post.inkwell.rb
|
@@ -415,6 +421,7 @@ test_files:
|
|
415
421
|
- test/dummy/db/migrate/20130208134952_add_columns_to_users.inkwell.rb
|
416
422
|
- test/dummy/db/migrate/20130212130848_add_owner_type_to_lines.inkwell.rb
|
417
423
|
- test/dummy/db/migrate/20130213121414_rename_parent_id_to_parent_comment_id_in_comment_table.inkwell.rb
|
424
|
+
- test/dummy/db/migrate/20130217135512_change_community_table_for_adding_types_and_user_access.inkwell.rb
|
418
425
|
- test/dummy/db/migrate/20130208134954_change_tables_for_communities.inkwell.rb
|
419
426
|
- test/dummy/db/migrate/20130201155147_create_communities.rb
|
420
427
|
- test/dummy/db/migrate/20130208134950_create_inkwell_blog_items.inkwell.rb
|