Ticket #419 - Stack trace when downloading Subversion Export File complains about no method "bytesize"
Updated 9 months, 3 weeks ago
| Mike Conley | Reviewers | ||
| branches/release_0.5 | markus_developers | ||
| None | MarkUs Source Code Repository | ||
get_svn_commands was returning an Array, not a String. Plus, get_svn_commands didn't take into account the possibility that there would be spaces in Group names.
No regressions with units/functionals. Wrote 2 new test cases in Assignment_Test - though I'm concerned that I essentially recreated the get_svn_commands method inside the test, just to generate what I'm comparing against... Maybe I just need some sleep, but are there any ideas on a better way of doing this?
Posted 10 months ago (October 2nd, 2009, 3:10 p.m.)
-
/branches/release_0.5/test/unit/assignment_test.rb (Diff revision 1) -
See what I mean, about reinventing?
Posted 10 months ago (October 2nd, 2009, 6:01 p.m.)
Mike, you are pretty busy, eh? BTW. that was something I coded. Thanks for the cleanup! More bugs to fix for 0.5? Anything I can help with?
-
/branches/release_0.5/app/models/assignment.rb (Diff revision 1) -
Idea: Why bother if there are spaces in there or not? How about this? svn_commands.push("svn export -r #{submission.revision_number} #{grouping.group.repository_external_access_url} \"#{grouping.group.group_name}\"") -
/branches/release_0.5/test/unit/assignment_test.rb (Diff revision 1) -
I wander what assert_equal does for Array instances. Does it compare references? I think, what we should do in those cases is actually loop over the array and to assertions on the array elements.
-
/branches/release_0.5/test/unit/assignment_test.rb (Diff revision 1) -
What if we would loop over the array returned by get_svn_commands() here and do a assert_match(/\"/, svn_command)?
Posted 10 months ago (October 2nd, 2009, 6:21 p.m.)
-
/branches/release_0.5/app/controllers/submissions_controller.rb (Diff revision 1) -
Totally my bad.
Review request changed
Updated 9 months, 4 weeks ago (October 4th, 2009, 6:33 p.m.)
-
- added Diff r2
Went with Severin's idea, and changed the SVN Export output so that group names with spaces are in quotes instead of underscores.
