Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
##command line jonathanwallace@Jonathan-Wallaces-Computer[5116]~/rollbook/trunk% /opt/local/bin/ruby -Ilib:test "/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake/rake_test_loader.rb" "/Users/jonathanwallace/rollbook/tru nk/test/unit/course_scorm_test.rb" /Users/jonathanwallace/rollbook/trunk/test/unit/course_scorm_test.rb:1: uninitialized constant Test (NameError) from /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake/rake_test_loader.rb:5:in `load' from /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake/rake_test_loader.rb:5 from /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake/rake_test_loader.rb:5:in `each' from /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake/rake_test_loader.rb:5 ## unit test class CourseScormTest < Test::Unit::TestCase def test_duh r = Factory.create_resource({}, ResourceCourse) r.target = upload("#{RAILS_ROOT}/test/fixtures/files/courseware_examples/CTS_Cert_MS_v1_NS.zip") c = Factory.create_course({}, CourseScorm) cp = Factory.create_course_package({:resource => r, :course => c}, CoursePackageAicc) end end
This paste will be private.
From the Design Piracy series on my blog: