Cloned the repo, bundle installed and ran tests - all passed. Then I made the following changes:
Bundle installed again, ran all tests - 10 errors, as shown below. I started to look at a couple. I understand how to fix #4, but these "RecordInivalid expected" and "name already taken" errors have me stumped.
Run options: --seed 30727
# Running:
...............F..F....F..........E....F...F.....E........E....EE....
Finished in 4.411355s, 15.6415 runs/s, 55.9919 assertions/s.
1) Failure:
FolderTest#test_copy_a_folder [/home/cayce/workspace/boxroom/test/unit/folder_test.rb:127]:
ActiveRecord::RecordInvalid expected but nothing was raised.
2) Failure:
FolderTest#test_move_a_folder [/home/cayce/workspace/boxroom/test/unit/folder_test.rb:158]:
--- expected
+++ actual
@@ -1 +1 @@
-#<Folder id: 142, name: "Root folder", parent_id: nil, created_at: "2014-05-06 01:10:28", updated_at: "2014-05-06 01:10:28">
+#<Folder id: 127, name: "Root folder", parent_id: nil, created_at: "2014-05-06 01:10:27", updated_at: "2014-05-06 01:10:27">
3) Failure:
FolderTest#test_whether_a_folder_has_children_or_not [/home/cayce/workspace/boxroom/test/unit/folder_test.rb:184]:
--- expected
+++ actual
@@ -1 +1 @@
-#<Folder id: 153, name: "Root folder", parent_id: nil, created_at: "2014-05-06 01:10:28", updated_at: "2014-05-06 01:10:28">
+#<Folder id: 127, name: "Root folder", parent_id: nil, created_at: "2014-05-06 01:10:27", updated_at: "2014-05-06 01:10:27">
4) Error:
ShareLinkTest#test_emails_is_not_longer_than_256_characters:
ActiveRecord::StatementInvalid: Mysql2::Error: Data too long for column 'emails' at row 1: UPDATE `share_links` SET `emails` = '[email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]', `link_token` = '96ef2551102ac909797d', `updated_at` = '2014-05-06 01:10:28' WHERE `share_links`.`id` = 26
test/unit/share_link_test.rb:17:in `block in <class:ShareLinkTest>'
5) Failure:
UserFileTest#test_attachment_file_name_is_unique [/home/cayce/workspace/boxroom/test/unit/user_file_test.rb:55]:
Failed assertion, no message given.
6) Failure:
UserFileTest#test_copy_a_file [/home/cayce/workspace/boxroom/test/unit/user_file_test.rb:85]:
ActiveRecord::RecordInvalid expected but nothing was raised.
7) Error:
UserTest#test_cannot_delete_admin_user:
ActiveRecord::RecordInvalid: Validation failed: Name has already been taken
app/models/user.rb:105:in `create_root_folder_and_admins_group'
test/unit/user_test.rb:88:in `block in <class:UserTest>'
8) Error:
UserTest#test_password_is_valid:
ActiveRecord::RecordInvalid: Validation failed: Name has already been taken
app/models/user.rb:105:in `create_root_folder_and_admins_group'
test/unit/user_test.rb:10:in `block in <class:UserTest>'
9) Error:
UserTest#test_user_permissions:
ActiveRecord::RecordInvalid: Validation failed: Name has already been taken
app/models/user.rb:105:in `create_root_folder_and_admins_group'
test/unit/user_test.rb:96:in `block in <class:UserTest>'
10) Error:
UserTest#test_whether_a_user_is_member_of_admins_or_not:
ActiveRecord::RecordInvalid: Validation failed: Name has already been taken
app/models/user.rb:105:in `create_root_folder_and_admins_group'
test/unit/user_test.rb:167:in `block in <class:UserTest>'
69 runs, 247 assertions, 5 failures, 5 errors, 0 skips