Hi Ernie, IIRC, this has come up recently (in the last few months), and we found that there was a change in rspec 2.6 that does not work with MacRuby 0.10, but rspec 2.5 still does. Though, I tried your example with the latest nightly build of MacRuby and used rspec 2.6 and had no issues. HTH, Mark On 2011-10-07, at 4:08 PM, Ernest N. Prabhakar, Ph.D. wrote:
Hi all,
I'm trying to use MacRuby with rspec, but it ain't working. I thought I read somewhere that it *should*. Is anyone else having problems, or is it an artifact of using rvm? Should I file a bug?
Thanks, -- Ernie P.
selfserve:frame prabhaka$ rvm current macruby-0.10
selfserve:tmp prabhaka$ cat > foo_spec.rspec describe "foo" do it {1.should == 1} end
selfserve:tmp prabhaka$ rspec foo_spec.rspec /Volumes/Slave/Users/prabhaka/.rvm/gems/macruby-0.10/gems/rspec-core-2.6.4/lib/rspec/core/world.rb:14:in `empty_without_conditional_filters?': undefined method `empty?' for #<Enumerator:0x40081dfe0> (NoMethodError) from /Volumes/Slave/Users/prabhaka/.rvm/gems/macruby-0.10/gems/rspec-core-2.6.4/lib/rspec/core/world.rb:131:in `announce_exclusion_filter:' from /Volumes/Slave/Users/prabhaka/.rvm/gems/macruby-0.10/gems/rspec-core-2.6.4/lib/rspec/core/world.rb:103:in `announce_filters' from /Volumes/Slave/Users/prabhaka/.rvm/gems/macruby-0.10/gems/rspec-core-2.6.4/lib/rspec/core/command_line.rb:19:in `run:' from /Volumes/Slave/Users/prabhaka/.rvm/gems/macruby-0.10/gems/rspec-core-2.6.4/lib/rspec/core/runner.rb:80:in `run_in_process:' from /Volumes/Slave/Users/prabhaka/.rvm/gems/macruby-0.10/gems/rspec-core-2.6.4/lib/rspec/core/runner.rb:69:in `run:' from /Volumes/Slave/Users/prabhaka/.rvm/gems/macruby-0.10/gems/rspec-core-2.6.4/lib/rspec/core/runner.rb:11:in `block'
selfserve:tmp prabhaka$ gem list --local
*** LOCAL GEMS ***
bundler (1.0.12) diff-lcs (1.1.2) git (1.2.5) jeweler (1.6.4) rake (0.9.2) rspec (2.6.0) rspec-core (2.6.4) rspec-expectations (2.6.0) rspec-mocks (2.6.0)
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel