I have the beta release of the RSpec book. Trying to run the greeting
example 'Hello World'
Using brew as package manager
Installed rspec gem using
$ sudo gem install rspec
kristian-mandrups-macbook-pro:rspec-coding kristianconsult$ gem list
*** LOCAL GEMS ***
abstract (1.0.0)
actionmailer (3.0.pre, 2.3.5)
...
cucumber (0.6.2)
cucumber-rails (0.2.4)
..
rspec (1.3.0)
rspec-rails (1.3.2)
...
My system used the spec in jruby first, so I removed jruby from the
equation!
kristian-mandrups-macbook-pro:rspec-coding kristianconsult$ spec -help
-bash: spec: command not found
Then trying uninstall
kristian-mandrups-macbook-pro:rspec-coding kristianconsult$ sudo gem
uninstall rspec
Password:
Select gem to uninstall:
1. rspec-1.3.0
2. rspec-1.3.0
3. All versions
> 3
Remove executables:
autospec, spec
in addition to the gem? [Yn] Y
...
$
Trying to reinstall
$ sudo gem install rspec
**************************************************
Thank you for installing rspec-1.3.0
Please be sure to read History.rdoc and Upgrade.rdoc
for useful information about this release.
**************************************************
Successfully installed rspec-1.3.0
1 gem installed
Installing ri documentation for rspec-1.3.0...
Updating class cache with 2074 classes...
Installing RDoc documentation for rspec-1.3.0...
Could not find main page README.rdoc
kristian-mandrups-macbook-pro:rspec-coding kristianconsult$ spec --
help
-bash: spec: command not found
$
Where should the spec command be found?
I created some rails generators myself with executables, so I assume
the rspec gem install comes with a /bin directory with a spec
executable?
I really wanna start learning BDD today!
Thanks!
Kristian
on 2010-02-02 14:28
on 2010-02-02 14:49
On Feb 02, 2010, at 8:58 am, Kristian Mandrup wrote: > Using brew as package manager > kristian-mandrups-macbook-pro:rspec-coding kristianconsult$ spec -- > help > > -bash: spec: command not found > $ If you're using Homebrew[1] (?) you'll need to figure out where it's storing binaries. Run "find / -name spec" to locate the command. Then run "echo $PATH" and check that the directory containing "spec" is in the list. If not you'll need to add it in your .bashrc or something (I don't use bash). HTH Ashley [1] http://github.com/mxcl/homebrew -- http://www.patchspace.co.uk/ http://www.linkedin.com/in/ashleymoran
on 2010-02-03 10:08
On Feb 02, 2010, at 8:58 am, Kristian Mandrup wrote:
> Where should the spec command be found?
Did you find it?
--
http://www.patchspace.co.uk/
http://www.linkedin.com/in/ashleymoran
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
Log in with Google account | Log in with Yahoo account
No account? Register here.