noosfero | Some tests in EnterpriseTest and PersonTest are failing (#77)

Joenio Costa gitlab at gitlab.com
Mon Jun 8 11:18:28 BRT 2015


New comment for Issue 77

https://gitlab.com/noosfero/noosfero/issues/77#note_1347400


Author: Joenio Costa

### EnterpriseTest

```
joenio at noosfero:/JOENIO/src/noosfero$ testrb test/unit/enterprise_test.rb 
Run options: 

# Running tests:

.........F.................FF......F................

Finished tests in 26.867687s, 1.9354 tests/s, 3.2753 assertions/s.

  1) Failure:
test_should_be_created_disabled_if_feature_enterprises_are_disabled_when_created_is_enabled(EnterpriseTest) [/JOENIO/src/noosfero/test/unit/enterprise_test.rb:359]:
<false> expected but was
<true>.

  2) Failure:
test_should_have_inactive_template_even_when_there_is_a_template_set(EnterpriseTest) [/JOENIO/src/noosfero/test/unit/enterprise_test.rb:277]:
<Enterprise/46/inactive_enterprise_template> expected but was
<Enterprise/45/enterprise-193>.

  3) Failure:
test_should_have_inactive_template_when_creating_enterprise_and_feature_is_enabled(EnterpriseTest) [/JOENIO/src/noosfero/test/unit/enterprise_test.rb:388]:
<1> expected but was
<4>.

  4) Failure:
test_should_not_replace_template_if_environment_doesnt_allow(EnterpriseTest) [/JOENIO/src/noosfero/test/unit/enterprise_test.rb:203]:
<1> expected but was
<4>.

52 tests, 88 assertions, 4 failures, 0 errors, 0 skips
```

### PersonTest

```
joenio at noosfero:/JOENIO/src/noosfero$ testrb test/unit/person_test.rb 
Run options: 

# Running tests:

...........................................FF.................................................FF......................................................................

Finished tests in 30.544769s, 5.4346 tests/s, 11.9169 assertions/s.

  1) Failure:
test_should_do_not_vote_against_a_comment_twice(PersonTest) [/JOENIO/src/noosfero/test/unit/person_test.rb:1685]:
Failed assertion, no message given.

  2) Failure:
test_should_do_not_vote_for_a_comment_twice(PersonTest) [/JOENIO/src/noosfero/test/unit/person_test.rb:1693]:
Failed assertion, no message given.

  3) Failure:
test_should_not_vote_against_a_voted_for_comment(PersonTest) [/JOENIO/src/noosfero/test/unit/person_test.rb:1703]:
Failed assertion, no message given.

  4) Failure:
test_should_not_vote_for_a_voted_against_comment(PersonTest) [/JOENIO/src/noosfero/test/unit/person_test.rb:1712]:
Failed assertion, no message given.

166 tests, 364 assertions, 4 failures, 0 errors, 0 skips
```

I'm working on it.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20150608/be9f687d/attachment-0001.html>


More information about the Noosfero-dev mailing list