I also reorganized the file structure. Most significantly, I moved all
solutions into a separate directory, one for each module. E.g.
learn_ruby/hello/hello_spec.rb
learn_ruby/hello/solution/hello.rb
This is to make it easier for the students (who won't get confused by
the solutions in the main directory, and might be less tempted to
cheat). It makes it slightly harder for authors, but to make it
easier, I wrote a new app "sspec" which is just like "spec" only it
adds the "solution" dir to the load path.
Finally, there's a rake task (the default) that generates all HTML,
runs all the specs (with their solutions), and packages the zip file.
Most of the specs fail, due to missing or deficient solutions, but
that's a separate problem.
--
Alex Chaffee - al...@stinky.com - http://alexch.github.com
Stalk me: http://friendfeed.com/alexch | http://twitter.com/alexch |
http://alexch.tumblr.com