Forum: Redcloth running tests on gem

Posted by Stephen Bannasch (Guest)
on 2008-11-21 00:11
(Received via mailing list)
Is there a way to run he tests with cjust the gem installed?

I wanted to run the tests on the gem and tried:

$ jruby -S gem list RedCloth

*** LOCAL GEMS ***

RedCloth (4.1.1)


$ jruby --version
jruby 1.1.5 (ruby 1.8.6 patchlevel 114) (2008-11-14 rev 6586) 
[i386-java]



[jruby.git (master)]$ jruby -S gem check -test RedCloth
ERROR:  While executing gem ... (OptionParser::InvalidOption)
     invalid option: -est
[jruby.git (master)]$ jruby -S gem check --test RedCloth
/Users/stephen/dev/ruby/src/jruby.git/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:38:in
`require': no such file to load -- helper (LoadError)
  from
/Users/stephen/dev/ruby/src/jruby.git/lib/ruby/site_ruby/1.8/rubygems/validator.rb:181:in
`unit_test'
  from
/Users/stephen/dev/ruby/src/jruby.git/lib/ruby/site_ruby/1.8/rubygems/validator.rb:181:in
`each'
  from
/Users/stephen/dev/ruby/src/jruby.git/lib/ruby/site_ruby/1.8/rubygems/validator.rb:181:in
`unit_test'
  from
/Users/stephen/dev/ruby/src/jruby.git/lib/ruby/site_ruby/1.8/rubygems/commands/check_command.rb:36:in
`execute'
  from
/Users/stephen/dev/ruby/src/jruby.git/lib/ruby/site_ruby/1.8/rubygems/command.rb:136:in
`invoke'
  from
/Users/stephen/dev/ruby/src/jruby.git/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:105:in
`process_args'
  from
/Users/stephen/dev/ruby/src/jruby.git/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:75:in
`run'
  from
/Users/stephen/dev/ruby/src/jruby.git/lib/ruby/site_ruby/1.8/rubygems/gem_runner.rb:39:in
`run'
  from /Users/stephen/dev/ruby/src/jruby.git/bin/gem:24
Posted by Jason Garber (jgarber)
on 2008-11-24 04:59
(Received via mailing list)
Not currently, but it seems a reasonable request.  File a ticket and
I'll make gem check --test RedCloth work.
Jason
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.