[Git][noosfero/noosfero][master] person_test: try fix for random failures
Bráulio Bhavamitra
gitlab at mg.gitlab.com
Sat Apr 15 08:34:34 BRT 2017
Bráulio Bhavamitra pushed to branch master at Noosfero / noosfero
Commits:
944e2539 by Braulio Bhavamitra at 2017-04-15T08:34:01-03:00
person_test: try fix for random failures
- - - - -
1 changed file:
- test/unit/person_test.rb
Changes:
=====================================
test/unit/person_test.rb
=====================================
--- a/test/unit/person_test.rb
+++ b/test/unit/person_test.rb
@@ -829,7 +829,8 @@ class PersonTest < ActiveSupport::TestCase
end
should "the person see all of your scraps" do
- person = fast_create(Person)
+ person = create_user.person
+ User.current = person.user
s1 = fast_create(Scrap, :sender_id => person.id)
assert_equal [s1], person.scraps
s2 = fast_create(Scrap, :sender_id => person.id)
View it on GitLab: https://gitlab.com/noosfero/noosfero/commit/944e2539cac40cc8c1c1529aa0f79c87a66a2e55
---
View it on GitLab: https://gitlab.com/noosfero/noosfero/commit/944e2539cac40cc8c1c1529aa0f79c87a66a2e55
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20170415/8aa85554/attachment.html>
More information about the Noosfero-dev
mailing list