sj26/rspec_junit_formatter — Issue #1: RSpec Issue with RVM on Linux and OSX
Author: wolfeidau
Created: 2011-11-20 22:15:59+00:00
State: open

Having some issues using this gem with RVM.

As far as I can tell there is an issue with the file being located within the core rspec namespace. Intially I thought it was an RVM thing however I have run the test in a bare env with only the environment variables required for ruby and gem to work, this had the same issue.

Based on the messages we exchanged yesterday I understand why it is located in that namespace, however having hacked the project to move it to a empty namespace, similar to Fuubar formatter, I have made the gem work.

As I am quite a new to ruby I am not entirely sure my rather large changes are necessary. That said I have a feeling there were some other minor issues I flushed out while doing so. These are mainly related to requires statements and were uncovered when i added a spec to try out the changes.

I have checked in my updates to https://github.com/wolfeidau/rspec_junit_formatter if you could have a look at what I have done that would be great.

$ rspec spec
/home/markw/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- j_unit_formatter (LoadError)
from /home/markw/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /home/markw/.rvm/gems/ruby-1.9.3-p0@rails31/gems/rspec-core-2.7.1/lib/rspec/core/configuration.rb:522:in `rescue in custom_formatter'
from /home/markw/.rvm/gems/ruby-1.9.3-p0@rails31/gems/rspec-core-2.7.1/lib/rspec/core/configuration.rb:519:in `custom_formatter'
from /home/markw/.rvm/gems/ruby-1.9.3-p0@rails31/gems/rspec-core-2.7.1/lib/rspec/core/configuration.rb:301:in `add_formatter'
from /home/markw/.rvm/gems/ruby-1.9.3-p0@rails31/gems/rspec-core-2.7.1/lib/rspec/core/configuration_options.rb:22:in `block in configure'
from /home/markw/.rvm/gems/ruby-1.9.3-p0@rails31/gems/rspec-core-2.7.1/lib/rspec/core/configuration_options.rb:22:in `each'
from /home/markw/.rvm/gems/ruby-1.9.3-p0@rails31/gems/rspec-core-2.7.1/lib/rspec/core/configuration_options.rb:22:in `configure'
from /home/markw/.rvm/gems/ruby-1.9.3-p0@rails31/gems/rspec-core-2.7.1/lib/rspec/core/command_line.rb:17:in `run'
from /home/markw/.rvm/gems/ruby-1.9.3-p0@rails31/gems/rspec-core-2.7.1/lib/rspec/core/runner.rb:80:in `run_in_process'
from /home/markw/.rvm/gems/ruby-1.9.3-p0@rails31/gems/rspec-core-2.7.1/lib/rspec/core/runner.rb:69:in `run'
from /home/markw/.rvm/gems/ruby-1.9.3-p0@rails31/gems/rspec-core-2.7.1/lib/rspec/core/runner.rb:10:in `block in autorun'