It seems a reasonable approach ... Have you looked at Celerity to drive
the app? From jRuby?

Brian  

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of James H
Sent: Friday, September 11, 2009 7:27 AM
To: [email protected]
Subject: [rspec-users] JRuby and RSpec for Rails

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
_______________________________________________
rspec-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to