Skip to content

Instantly share code, notes, and snippets.

@sdqali
Created March 26, 2010 10:07
Show Gist options
  • Save sdqali/344736 to your computer and use it in GitHub Desktop.
Save sdqali/344736 to your computer and use it in GitHub Desktop.
'Logging error handling prints the stack trace to exceptions.log' FAILED
expected "FATAL 2010-03-26 15:35:59,955 There has been a fatal error.\n./spec/spec_helper.rb:166:in `raise_exception': (Exception)\n\tfrom ./spec/logging_spec.rb:157\n\tf
rom file:/home/sdqali/src/work/mira/vendor/jars/jruby-complete-1.4.0.jar!/META-INF/jruby.home/lib/ruby/gems/1.8/gems/rspec-1.2.9/lib/spec/example/example_methods.rb:40:in
`instance_eval'\n\tfrom file:/home/sdqali/src/work/mira/vendor/jars/jruby-complete-1.4.0.jar!/META-INF/jruby.home/lib/ruby/gems/1.8/gems/rspec-1.2.9/lib/spec/example/examp
le_methods.rb:40:in `execute'\n\tfrom file:/home/sdqali/src/work/mira/vendor/jars/jruby-complete-1.4.0.jar!/META-INF/jruby.home/lib/ruby/gems/1.8/gems/rspec-1.2.9/lib/spec
/example/example_methods.rb:37:in `execute'\n\tfrom file:/home/sdqali/src/work/mira/vendor/jars/jruby-complete-1.4.0.jar!/META-INF/jruby.home/lib/ruby/gems/1.8/gems/rspec-
1.2.9/lib/spec/example/example_group_methods.rb:214:in `run_examples'\n\tfrom file:/home/sdqali/src/work/mira/vendor/jars/jruby-complete-1.4.0.jar!/META-INF/jruby.home/lib
/ruby/gems/1.8/gems/rspec-1.2.9/lib/spec/example/example_group_methods.rb:212:in `each'\n\tfrom file:/home/sdqali/src/work/mira/vendor/jars/jruby-complete-1.4.0.jar!/META-
INF/jruby.home/lib/ruby/gems/1.8/gems/rspec-1.2.9/lib/spec/example/example_group_methods.rb:212:in `run_examples'\n\tfrom file:/home/sdqali/src/work/mira/vendor/jars/jruby
-complete-1.4.0.jar!/META-INF/jruby.home/lib/ruby/gems/1.8/gems/rspec-1.2.9/lib/spec/example/example_group_methods.rb:103:in `run'\n\t ... 8 levels...\n\tfrom file:/home/s
dqali/src/work/mira/vendor/jars/jruby-complete-1.4.0.jar!/META-INF/jruby.home/bin/spec:12:in `load'\n\tfrom file:/home/sdqali/src/work/mira/vendor/jars/jruby-complete-1.4.
0.jar!/jruby/commands.rb:12:in `spec'\n\tfrom spec:1\n\t...internal jruby stack elided...\n\tfrom Object.raise_exception(./spec/logging_spec.rb:157)\n\tfrom (unknown).(unk
nown)(file:/home/sdqali/src/work/mira/vendor/jars/jruby-complete-1.4.0.jar!/META-INF/jruby.home/lib/ruby/gems/1.8/gems/rspec-1.2.9/lib/spec/example/example_methods.rb:40)\
n\tfrom Kernel.instance_eval(file:/home/sdqali/src/work/mira/vendor/jars/jruby-complete-1.4.0.jar!/META-INF/jruby.home/lib/ruby/gems/1.8/gems/rspec-1.2.9/lib/spec/example/
example_methods.rb:40)\n\tfrom Kernel.instance_eval(file:/home/sdqali/src/work/mira/vendor/jars/jruby-complete-1.4.0.jar!/META-INF/jruby.home/lib/ruby/gems/1.8/gems/rspec-
1.2.9/lib/spec/example/example_methods.rb:40)\n\tfrom Spec::Example::ExampleMethods.execute(file:/home/sdqali/src/work/mira/vendor/jars/jruby-complete-1.4.0.jar!/META-INF/
jruby.home/lib/ruby/gems/1.8/gems/rspec-1.2.9/lib/spec/example/example_methods.rb:37)\n\tfrom Spec::Example::ExampleMethods.execute(file:/home/sdqali/src/work/mira/vendor/
jars/jruby-complete-1.4.0.jar!/META-INF/jruby.home/lib/ruby/gems/1.8/gems/rspec-1.2.9/lib/spec/example/example_group_methods.rb:214)\n\tfrom Spec::Example::ExampleGroupMet
hods.run_examples(file:/home/sdqali/src/work/mira/vendor/jars/jruby-complete-1.4.0.jar!/META-INF/jruby.home/lib/ruby/gems/1.8/gems/rspec-1.2.9/lib/spec/example/example_gro
up_methods.rb:212)\n\tfrom Array.each(file:/home/sdqali/src/work/mira/vendor/jars/jruby-complete-1.4.0.jar!/META-INF/jruby.home/lib/ruby/gems/1.8/gems/rspec-1.2.9/lib/spec
/example/example_group_methods.rb:212)\n\tfrom Spec::Example::ExampleGroupMethods.run_examples(file:/home/sdqali/src/work/mira/vendor/jars/jruby-complete-1.4.0.jar!/META-I
NF/jruby.home/lib/ruby/gems/1.8/gems/rspec-1.2.9/lib/spec/example/example_group_methods.rb:103)\n\tfrom Spec::Example::ExampleGroupMethods.run(file:/home/sdqali/src/work/m
ira/vendor/jars/jruby-complete-1.4.0.jar!/META-INF/jruby.home/lib/ruby/gems/1.8/gems/rspec-1.2.9/lib/spec/runner/example_group_runner.rb:23)\n\tfrom Spec::Runner::ExampleG
roupRunner.run(file:/home/sdqali/src/work/mira/vendor/jars/jruby-complete-1.4.0.jar!/META-INF/jruby.home/lib/ruby/gems/1.8/gems/rspec-1.2.9/lib/spec/runner/example_group_r
unner.rb:22)\n\tfrom Array.each(file:/home/sdqali/src/work/mira/vendor/jars/jruby-complete-1.4.0.jar!/META-INF/jruby.home/lib/ruby/gems/1.8/gems/rspec-1.2.9/lib/spec/runne
r/example_group_runner.rb:22)\n\tfrom Spec::Runner::ExampleGroupRunner.run(file:/home/sdqali/src/work/mira/vendor/jars/jruby-complete-1.4.0.jar!/META-INF/jruby.home/lib/ru
by/gems/1.8/gems/rspec-1.2.9/lib/spec/runner/options.rb:151)\n\tfrom Spec::Runner::Options.run_examples(file:/home/sdqali/src/work/mira/vendor/jars/jruby-complete-1.4.0.ja
r!/META-INF/jruby.home/lib/ruby/gems/1.8/gems/rspec-1.2.9/lib/spec/runner/command_line.rb:9)\n\tfrom #<Class:01x442c76>.run(file:/home/sdqali/src/work/mira/vendor/jars/jru
by-complete-1.4.0.jar!/META-INF/jruby.home/lib/ruby/gems/1.8/gems/rspec-1.2.9/bin/spec:5)\n\tfrom (unknown).(unknown)(file:/home/sdqali/src/work/mira/vendor/jars/jruby-com
plete-1.4.0.jar!/META-INF/jruby.home/lib/ruby/gems/1.8/gems/rspec-1.2.9/bin/spec:19)\n\tfrom Kernel.load(file:/home/sdqali/src/work/mira/vendor/jars/jruby-complete-1.4.0.j
ar!/META-INF/jruby.home/bin/spec:19)\n\tfrom (unknown).(unknown)(file:/home/sdqali/src/work/mira/vendor/jars/jruby-complete-1.4.0.jar!/META-INF/jruby.home/bin/spec:12)\n\t
from Kernel.load(file:/home/sdqali/src/work/mira/vendor/jars/jruby-complete-1.4.0.jar!/jruby/commands.rb:12)\n\tfrom #<Class:01x13c53a8>.spec(spec:1)\n\tfrom (unknown).(un
known)(:1)\n" to include "file:/home/sdqali/src/work/mira/vendor/jars/jruby-complete-1.4.0.jar!/META-INF/jruby.home/lib/ruby/gems/1.8/gems/rspec-1.2.9/lib/spec/runner/exam
ple_group_runner.rb:23:in `run'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment