Hi friends.

I have a Rails project I'm working on that uses JRuby, and
consequently I use a few Java libs in this project. I often don't want
to run these examples when I'm using Autospec, nor do I necessarily
want to use JRuby during testing as it's much slower than MRI for
specs.

I went ahead and cordoned off my specs into their own subdirectory in
the main "spec" directory hoping this would shield them from running
when I invoke "rake spec". This does not seem to be the case though. I
figure the next logical thing to do would be to have my own custom
"describe" blocks that informed RSpec that I want to skip them unless
RUBY_PLATFORM is set to "java".

Does this sound like a reasonable strategy? I'm not really sure how to
implement the "skip me if I'm not being run with JRuby" part of this
strategy. I could use some advice.

Thank you,

James
_______________________________________________
rspec-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to