Skip to content

Instantly share code, notes, and snippets.

@tjkirch
Created June 3, 2011 02:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tjkirch/1005773 to your computer and use it in GitHub Desktop.
Save tjkirch/1005773 to your computer and use it in GitHub Desktop.
Syntax error causing ruby koans success
$ git diff
diff --git a/koans/about_asserts.rb b/koans/about_asserts.rb
index e1c34d4..bf19c21 100644
--- a/koans/about_asserts.rb
+++ b/koans/about_asserts.rb
@@ -3,7 +3,7 @@
require File.expand_path(File.dirname(__FILE__) + '/edgecase')
-class AboutAsserts < EdgeCase::Koan
+class AboutAsserts < EdgeCase::Koan <
# We shall contemplate truth by testing reality, via asserts.
def test_assert_truth
$ rake
(in /home/tjkirch/code/ruby/ruby_koans/koans)
/home/tjkirch/.rvm/rubies/ruby-1.9.2-p180/bin/ruby path_to_enlightenment.rb
,, , ,,
: ::::, :::,
, ,,: :::::::::::::,, :::: : ,
, ,,, ,:::::::::::::::::::, ,: ,: ,,
:, ::, , , :, ,::::::::::::::::::, ::: ,::::
: : ::, ,:::::::: ::, ,::::
, ,::::: :,:::::::,::::,
,: , ,:,,: :::::::::::::
::,: ,,:::, ,::::::::::::,
,:::, :,,::: ::::::::::::,
,::: :::::::, Mountains are again merely mountains ,::::::::::::
:::,,,:::::: ::::::::::::
,:::::::::::, ::::::::::::,
:::::::::::, ,::::::::::::
::::::::::::: ,::::::::::::
:::::::::::: Ruby Koans ::::::::::::,
:::::::::::: (in Ruby 1.9.2) ,::::::::::::,
:::::::::::, , ::::::::::::
,:::::::::::::, brought to you by ,,::::::::::::,
:::::::::::::: ,::::::::::::
::::::::::::::, ,:::::::::::::
::::::::::::, EdgeCase Software Artisans , ::::::::::::
:,::::::::: :::: :::::::::::::
,::::::::::: ,: ,,:::::::::::::,
:::::::::::: ,::::::::::::::,
:::::::::::::::::, ::::::::::::::::
:::::::::::::::::::, ::::::::::::::::
::::::::::::::::::::::, ,::::,:, , ::::,:::
:::::::::::::::::::::::, ::,: ::,::, ,,: ::::
,:::::::::::::::::::: ::,, , ,, ,::::
,:::::::::::::::: ::,, , ,:::,
,:::: , ,,
,,,
/home/tjkirch/code/ruby/ruby_koans/koans/about_asserts.rb:11:in `<': compared with non class/module (TypeError)
from /home/tjkirch/code/ruby/ruby_koans/koans/about_asserts.rb:11:in `<top (required)>'
from <internal:lib/rubygems/custom_require>:29:in `require'
from <internal:lib/rubygems/custom_require>:29:in `require'
from path_to_enlightenment.rb:5:in `<main>'
rake aborted!
Command failed with status (1): [/home/tjkirch/.rvm/rubies/ruby-1.9.2-p180/...]
/home/tjkirch/code/ruby/ruby_koans/koans/Rakefile:10:in `block in <top (required)>'
(See full trace by running task with --trace)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment