Created
October 27, 2013 03:58
-
-
Save LucasPadovan/7177833 to your computer and use it in GitHub Desktop.
Test unitarios firehouse
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Este es el log de los test unitarios COMENTANDO la validación del truck_number de los endowments. | |
Fallan 3 creo, intervention, endowment y endowment_line. Ni idea para que es el Version.count que aparece en los test unitarios autogenerados. | |
/home/lockon/.rbenv/versions/1.9.3-p327/bin/ruby -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) -Itest /home/lockon/Programas/RubyMine-5.4/rb/testing/runner/tunit_or_minitest_in_folder_runner.rb | |
Testing started at 00:54 ... | |
Work directory: /home/lockon/workspace/firehouse | |
Loading files.... | |
========================================= | |
1. /home/lockon/workspace/firehouse/test/unit/intervention_test.rb:1 | |
2. /home/lockon/workspace/firehouse/test/unit/endowment_test.rb:1 | |
3. /home/lockon/workspace/firehouse/test/unit/firefighter_test.rb:1 | |
4. /home/lockon/workspace/firehouse/test/unit/mobile_intervention_test.rb:1 | |
5. /home/lockon/workspace/firehouse/test/unit/user_test.rb:1 | |
6. /home/lockon/workspace/firehouse/test/unit/informer_test.rb:1 | |
7. /home/lockon/workspace/firehouse/test/unit/vehicle_test.rb:1 | |
8. /home/lockon/workspace/firehouse/test/unit/truck_test.rb:1 | |
9. /home/lockon/workspace/firehouse/test/unit/person_test.rb:1 | |
10. /home/lockon/workspace/firehouse/test/unit/endowment_line_firefighter_relation_test.rb:1 | |
11. /home/lockon/workspace/firehouse/test/unit/building_test.rb:1 | |
12. /home/lockon/workspace/firehouse/test/unit/hierarchy_test.rb:1 | |
13. /home/lockon/workspace/firehouse/test/unit/endowment_line_test.rb:1 | |
14. /home/lockon/workspace/firehouse/test/unit/sco_test.rb:1 | |
15. /home/lockon/workspace/firehouse/test/unit/intervention_type_test.rb:1 | |
15 files were loaded. | |
========================================= | |
Running tests... | |
Loaded Suite test,test/fabricators,test/integration,test/functional,test/performance,test/unit | |
Started at 2013-10-27 00:55:02 -0300 w/ seed 54809. | |
BuildingTest | |
PASS (0:00:00.809) create | |
PASS (0:00:00.954) destroy | |
PASS (0:00:01.086) update | |
PASS (0:00:01.228) validates blank attributes | |
EndowmentLineFirefighterRelationTest | |
PASS (0:00:01.344) create | |
PASS (0:00:01.443) destroy | |
EndowmentLineTest | |
FAIL (0:00:01.587) create | |
"Version.count" didn't change by 1. | |
<12> expected but was | |
<14>. | |
@ /home/lockon/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/activesupport-3.2.13/lib/active_support/testing/assertions.rb:60:in `block in assert_difference' | |
/home/lockon/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/activesupport-3.2.13/lib/active_support/testing/assertions.rb:57:in `each' | |
/home/lockon/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/activesupport-3.2.13/lib/active_support/testing/assertions.rb:57:in `each_with_index' | |
/home/lockon/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/activesupport-3.2.13/lib/active_support/testing/assertions.rb:57:in `assert_difference' | |
test/unit/endowment_line_test.rb:10:in `block in <class:EndowmentLineTest>' | |
/home/lockon/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/activesupport-3.2.13/lib/active_support/testing/setup_and_teardown.rb:36:in `block in run' | |
/home/lockon/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:425:in `_run__3322997630099454634__setup__4092092190295704299__callbacks' | |
/home/lockon/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:405:in `__run_callback' | |
/home/lockon/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks' | |
/home/lockon/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:81:in `run_callbacks' | |
/home/lockon/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/activesupport-3.2.13/lib/active_support/testing/setup_and_teardown.rb:35:in `run' | |
PASS (0:00:01.670) destroy | |
PASS (0:00:01.742) update | |
PASS (0:00:01.824) validates blank attributes | |
EndowmentTest | |
ERROR (0:00:01.965) create | |
Can't mass-assign protected attributes: intervention_id | |
@ /home/lockon/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/activemodel-3.2.13/lib/active_model/mass_assignment_security/sanitizer.rb:48:in `process_removed_attributes' | |
/home/lockon/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/activemodel-3.2.13/lib/active_model/mass_assignment_security/sanitizer.rb:20:in `debug_protected_attribute_removal' | |
/home/lockon/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/activemodel-3.2.13/lib/active_model/mass_assignment_security/sanitizer.rb:12:in `sanitize' | |
/home/lockon/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/activemodel-3.2.13/lib/active_model/mass_assignment_security.rb:230:in `sanitize_for_mass_assignment' | |
/home/lockon/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/activerecord-3.2.13/lib/active_record/attribute_assignment.rb:75:in `assign_attributes' | |
/home/lockon/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/activerecord-3.2.13/lib/active_record/base.rb:498:in `initialize' | |
app/models/endowment.rb:24:in `initialize' | |
test/unit/endowment_test.rb:12:in `new' | |
test/unit/endowment_test.rb:12:in `block (3 levels) in <class:EndowmentTest>' | |
/home/lockon/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/activesupport-3.2.13/lib/active_support/testing/assertions.rb:55:in `assert_difference' | |
test/unit/endowment_test.rb:11:in `block (2 levels) in <class:EndowmentTest>' | |
/home/lockon/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/activesupport-3.2.13/lib/active_support/testing/assertions.rb:55:in `assert_difference' | |
test/unit/endowment_test.rb:10:in `block in <class:EndowmentTest>' | |
/home/lockon/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/activesupport-3.2.13/lib/active_support/testing/setup_and_teardown.rb:36:in `block in run' | |
/home/lockon/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:425:in `_run__2451559132543910359__setup__4092092190295704299__callbacks' | |
/home/lockon/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:405:in `__run_callback' | |
/home/lockon/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks' | |
/home/lockon/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:81:in `run_callbacks' | |
/home/lockon/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/activesupport-3.2.13/lib/active_support/testing/setup_and_teardown.rb:35:in `run' | |
PASS (0:00:02.111) destroy | |
PASS (0:00:02.161) update | |
PASS (0:00:02.226) validate truck out-in distance | |
PASS (0:00:02.301) validate update actions! | |
PASS (0:00:02.363) validates blank attributes | |
FirefighterTest | |
PASS (0:00:02.387) create | |
PASS (0:00:02.414) destroy | |
PASS (0:00:02.445) update | |
PASS (0:00:02.462) validates blank attributes | |
PASS (0:00:02.486) validates unique attributes | |
HierarchyTest | |
PASS (0:00:02.553) create | |
PASS (0:00:02.576) destroy | |
PASS (0:00:02.654) update | |
PASS (0:00:02.665) validates blank attributes | |
InformerTest | |
PASS (0:00:02.766) create | |
PASS (0:00:02.852) destroy | |
PASS (0:00:02.971) update | |
InterventionTest | |
FAIL (0:00:03.134) create | |
"Version.count" didn't change by 5. | |
<16> expected but was | |
<20>. | |
@ /home/lockon/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/activesupport-3.2.13/lib/active_support/testing/assertions.rb:60:in `block in assert_difference' | |
/home/lockon/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/activesupport-3.2.13/lib/active_support/testing/assertions.rb:57:in `each' | |
/home/lockon/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/activesupport-3.2.13/lib/active_support/testing/assertions.rb:57:in `each_with_index' | |
/home/lockon/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/activesupport-3.2.13/lib/active_support/testing/assertions.rb:57:in `assert_difference' | |
test/unit/intervention_test.rb:11:in `block (2 levels) in <class:InterventionTest>' | |
/home/lockon/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/activesupport-3.2.13/lib/active_support/testing/assertions.rb:55:in `assert_difference' | |
test/unit/intervention_test.rb:9:in `block in <class:InterventionTest>' | |
/home/lockon/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/activesupport-3.2.13/lib/active_support/testing/setup_and_teardown.rb:36:in `block in run' | |
/home/lockon/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:425:in `_run__489990647624612767__setup__4092092190295704299__callbacks' | |
/home/lockon/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:405:in `__run_callback' | |
/home/lockon/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks' | |
/home/lockon/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:81:in `run_callbacks' | |
/home/lockon/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/activesupport-3.2.13/lib/active_support/testing/setup_and_teardown.rb:35:in `run' | |
PASS (0:00:03.259) destroy | |
PASS (0:00:03.373) update | |
FAIL (0:00:03.460) validates blank attributes | |
<3> expected but was | |
<2>. | |
@ test/unit/intervention_test.rb:43:in `block in <class:InterventionTest>' | |
/home/lockon/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/activesupport-3.2.13/lib/active_support/testing/setup_and_teardown.rb:36:in `block in run' | |
/home/lockon/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:425:in `_run__489990647624612767__setup__4092092190295704299__callbacks' | |
/home/lockon/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:405:in `__run_callback' | |
/home/lockon/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks' | |
/home/lockon/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:81:in `run_callbacks' | |
/home/lockon/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/activesupport-3.2.13/lib/active_support/testing/setup_and_teardown.rb:35:in `run' | |
InterventionTypeTest | |
PASS (0:00:03.480) create | |
PASS (0:00:03.507) destroy | |
PASS (0:00:03.530) update | |
PASS (0:00:03.541) validates blank attributes | |
MobileInterventionTest | |
PASS (0:00:03.826) create | |
PASS (0:00:03.995) destroy | |
PASS (0:00:04.107) update | |
PersonTest | |
PASS (0:00:04.724) create | |
PASS (0:00:05.043) destroy | |
PASS (0:00:05.362) update | |
PASS (0:00:05.659) validates blank attributes | |
ScoTest | |
PASS (0:00:05.682) create | |
PASS (0:00:05.705) destroy | |
PASS (0:00:05.729) update | |
PASS (0:00:05.742) validates blank attributes | |
TruckTest | |
PASS (0:00:05.769) create | |
PASS (0:00:05.796) destroy | |
PASS (0:00:05.825) update | |
PASS (0:00:05.842) validates blank attributes | |
PASS (0:00:05.867) validates unique attributes | |
UserTest | |
PASS (0:00:05.901) create | |
PASS (0:00:05.927) destroy | |
PASS (0:00:06.135) magick search | |
PASS (0:00:06.167) update | |
PASS (0:00:06.236) validates blank attributes | |
PASS (0:00:06.256) validates confirmated attributes | |
PASS (0:00:06.279) validates length of long attributes | |
PASS (0:00:06.302) validates length of short attributes | |
PASS (0:00:06.338) validates unique attributes | |
PASS (0:00:06.360) validates well formated attributes | |
VehicleTest | |
PASS (0:00:06.598) create | |
PASS (0:00:06.817) destroy | |
PASS (0:00:06.989) update | |
PASS (0:00:07.092) validates blank attributes | |
Finished in 7.092838 seconds. | |
66 tests, 62 passed, 3 failures, 1 errors, 0 skips, 207 assertions | |
Process finished with exit code 4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment