Forum: Redcloth running tests on gem

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
6f608b6766f79343062a2aa3985933dc?d=identicon&s=25 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
A50dcaaf8e545e6cc1fb4e32919be6ad?d=identicon&s=25 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
This topic is locked and can not be replied to.