#119 √ resolved
Tim Dysinger

[Patch]Autotest Broked on Mac

Reported by Tim Dysinger | April 29th, 2008 @ 05:43 AM | in 1.0

In merb_spec.rb the spec_command search paths don't include /usr/bin/spec where spec lives. This means out of the box autospec merb doesn't work on the mac.

File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'bin', 'spec'))

( This is /User/tim/Projects/bin/spec ??? )

File.join(Config::CONFIG['bindir'], 'spec')

( This is /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/spec where as

spec is actually /usr/bin/spec on my mac )

Fix is:

def spec_commands

[ File.join(Config::CONFIG['bindir'], 'spec'), 'spec' ]

end

And is pushed to my repo @ github:

To git@github.com:dysinger/merb-more.git @ master @ 3382e44825ed

Comments and changes to this ticket

Please Login or create a free account to add a new comment.

You can update this ticket by sending an email to from your email client. (help)

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Shared Ticket Bins