rSpec (rev 2996), Rails (rev 8214): TextMate bundle problems

Hey guys,

I’m trying to get rSpec (rev 2996) working with Rails 2 (rev 8214).
Running the tests from the command line works, no problem.

I installed the RSpec.tmbundle (also rev 2996), and would like to see
the HTML test results in TextMate. When I run the “Run examples in
selected files/directories” command in TextMate, I get the following
dump:


RubyMate r8136 running Ruby r1.8.5 (/usr/local/bin/ruby)

tiger_spec.rb

/usr/local/lib/ruby/gems/1.8/gems/builder-2.1.2/lib/blankslate.rb:84:in
blank_slate_method_added': stack level too deep (SystemStackError) from /usr/local/lib/ruby/gems/1.8/gems/builder-2.1.2/lib/blankslate.rb:84:in blank_slate_method_added’
from
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/builder.rb:86:in
method_added' from /Applications/TextMate.app/Contents/SharedSupport/Support/lib/builder.rb:111 from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in gem_original_require’
from
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
require' from /Users/Brad/dev/ws/fb3ws/test/bradtest/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/core_ext/array/conversions.rb:1 from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in gem_original_require’
from
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
require' ... 19 levels... from /Users/Brad/dev/ws/fb3ws/test/bradtest/spec/models/../spec_helper.rb:4:in require’
from
/Users/Brad/dev/ws/fb3ws/test/bradtest/spec/models/…/spec_helper.rb:4
from
/Users/Brad/dev/ws/fb3ws/test/bradtest/spec/models/tiger_spec.rb:1:in
require' from /Users/Brad/dev/ws/fb3ws/test/bradtest/spec/models/tiger_spec.rb:1 /usr/local/lib/ruby/gems/1.8/gems/builder-2.1.2/lib/blankslate.rb:84:in blank_slate_method_added’: stack level too deep (SystemStackError)
from
/usr/local/lib/ruby/gems/1.8/gems/builder-2.1.2/lib/blankslate.rb:84:in
blank_slate_method_added' from /Applications/TextMate.app/Contents/SharedSupport/Support/lib/builder.rb:86:in method_added’
from
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/builder.rb:111
from
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
gem_original_require' from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in require’
from
/Users/Brad/dev/ws/fb3ws/test/bradtest/vendor/rails/activerecord/lib/…/…/activesupport/lib/active_support/core_ext/array/conversions.rb:1
from
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
gem_original_require' from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in require’
… 19 levels…
from
/Users/Brad/dev/ws/fb3ws/test/bradtest/spec/models/…/spec_helper.rb:4:in
require' from /Users/Brad/dev/ws/fb3ws/test/bradtest/spec/models/../spec_helper.rb:4 from /Users/Brad/dev/ws/fb3ws/test/bradtest/spec/models/tiger_spec.rb:1:in require’
from
/Users/Brad/dev/ws/fb3ws/test/bradtest/spec/models/tiger_spec.rb:1
Program exited.

Anybody know why this is? I did see this post on the Macromates site:

http://macromates.com/ticket/show?ticket_id=F4DA8B03

Adding his suggested “$:.reject! { |e| e.include? ‘TextMate’ }” line at
the top of my tiger_spec.rb document yields the following errors when
the same TextMate command is run:


RubyMate r8136 running Ruby r1.8.5 (/usr/local/bin/ruby)

tiger_spec.rb

/Users/Brad/dev/ws/fb3ws/test/bradtest/vendor/plugins/rspec/lib/spec/runner/options.rb:208:in
files_to_load': File or directory not found: [, (RuntimeError) from /Users/Brad/dev/ws/fb3ws/test/bradtest/vendor/plugins/rspec/lib/spec/runner/options.rb:202:in each’
from
/Users/Brad/dev/ws/fb3ws/test/bradtest/vendor/plugins/rspec/lib/spec/runner/options.rb:202:in
files_to_load' from /Users/Brad/dev/ws/fb3ws/test/bradtest/vendor/plugins/rspec/lib/spec/runner/options.rb:81:in run_examples’
from
/Users/Brad/dev/ws/fb3ws/test/bradtest/vendor/plugins/rspec/lib/spec.rb:22:in
`run’
from
/Users/Brad/dev/ws/fb3ws/test/bradtest/vendor/plugins/rspec/lib/spec.rb:36
from
/Users/Brad/dev/ws/fb3ws/test/bradtest/spec/models/tiger_spec.rb:5
RuntimeError: File or directory not found: [,

method files_to_load in options.rb at line 208
method each in options.rb at line 202
method files_to_load in options.rb at line 202
method run_examples in options.rb at line 81
method run in spec.rb at line 22
at top level in spec.rb at line 36
at top level in tiger_spec.rb at line 5
Program exited.

Anyone know how to get this working? Thanks for any help…

Brad