[rspec-devel] [ rspec-Bugs-8103 ] RSpec not installing spec script correctly

noreply at rubyforge.org noreply at rubyforge.org
Sun Apr 1 15:24:49 EDT 2007


Bugs item #8103, was opened at 2007-01-24 02:22
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=3149&aid=8103&group_id=797

Category: runner module
Group: v1.0 (example)
>Status: Closed
>Resolution: Accepted
Priority: 3
Submitted By: Aslak Hellesøy (aslak_hellesoy)
Assigned to: Aslak Hellesøy (aslak_hellesoy)
Summary: RSpec not installing spec script correctly

Initial Comment:
>From Charles Oliver Nutter:

Hey, I just noticed this today...installed RSpec with JRuby, and at the
top of the spec script:

#!/usr/bin/env ruby

That dog won't hunt, Monsignor.

Rails and rake install scripts that correctly run with JRuby, so that's
probably good examples to follow. Unfortunately I have no clue how they
do it.

- Charlie

----------------------------------------------------------------------

>Comment By: Aslak Hellesøy (aslak_hellesoy)
Date: 2007-04-01 15:24

Message:
Fixed in branches/0.9-dev

----------------------------------------------------------------------

Comment By: Aslak Hellesøy (aslak_hellesoy)
Date: 2007-03-20 04:57

Message:
The reason why I'm asking is that rubygems generates files with

#!/usr/bin/env ruby

in the header - it's not RSpec. I need to know what Rubygems version you are using, and what the path of the said file is (so I can determine whether this is a file made by the RSpec team or the Rubygems program.

----------------------------------------------------------------------

Comment By: Aslak Hellesøy (aslak_hellesoy)
Date: 2007-03-20 03:19

Message:
Are you talking about the rubygems-generated wrapper script? What's the path of the script you're talking abouth (after installation and in our sources).


----------------------------------------------------------------------

Comment By: Scott Taylor (smtlaissezfaire)
Date: 2007-03-20 02:36

Message:
What is the best way to get around this?  I have a little script which searches the $PATH environment variable for a given name, hence:

euclid% find_file_in_path ruby
/opt/local/bin
/usr/local/bin
/usr/bin

euclid% find_file_in_path spec
/opt/local/bin

Would something like this be useful to use?  How about for the windows folks?

----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=3149&aid=8103&group_id=797


More information about the rspec-devel mailing list