$ rake spec --trace
(in /Users/joe/projects/tanga)
** Invoke spec (first_time)
** Invoke db:test:prepare (first_time)
** Invoke db:abort_if_pending_migrations (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:abort_if_pending_migrations
** Execute db:test:prepare
** Invoke db:test:clone_structure (first_time)
** Invoke db:structure:dump (first_time)
** Invoke environment
** Execute db:structure:dump
** Invoke db:test:purge (first_time)
** Invoke environment
** Execute db:test:purge
** Execute db:test:clone_structure
** Execute spec
$
Running “script/spec /path/to/spec” also doesn’t give output.
Any ideas? I ran “script/generate rspec” and let it overwrite
everything.
Joe Van D. wrote:
$ rake spec --trace
(in /Users/joe/projects/tanga)
** Invoke spec (first_time)
** Invoke db:test:prepare (first_time)
** Invoke db:abort_if_pending_migrations (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:abort_if_pending_migrations
** Execute db:test:prepare
** Invoke db:test:clone_structure (first_time)
** Invoke db:structure:dump (first_time)
** Invoke environment
** Execute db:structure:dump
** Invoke db:test:purge (first_time)
** Invoke environment
** Execute db:test:purge
** Execute db:test:clone_structure
** Execute spec
$
Running “script/spec /path/to/spec” also doesn’t give output.
I am getting the same problem on XP with a fresh install (ruby 1.8.6
patch 111 - not so fresh, I admit) Rails 2.1 rspec 1.1.4
I think the problem may be something to do with not being able to check
out the rspec 1.4.1 after cloning the git. It complains that:
error: You have local changes to
‘examples/stories/game-of-life/behaviour/storie
s/CellsWithMoreThanThreeNeighboursDie.story’; cannot switch branches.
which is rich as I just downloaded it and haven’t changed anything 
Any ideas? I ran “script/generate rspec” and let it overwrite
everything.
Ditto…
Pat Parslow wrote:
snip
I am getting the same problem on XP with a fresh install (ruby 1.8.6
patch 111 - not so fresh, I admit) Rails 2.1 rspec 1.1.4
I think the problem may be something to do with not being able to check
out the rspec 1.4.1 after cloning the git. It complains that:
error: You have local changes to
‘examples/stories/game-of-life/behaviour/storie
s/CellsWithMoreThanThreeNeighboursDie.story’; cannot switch branches.
which is rich as I just downloaded it and haven’t changed anything 
Any ideas? I ran “script/generate rspec” and let it overwrite
everything.
Ditto…
OK, so it wasn’t that. I did a git pull and then checked-out 1.1.4 and
it still behaved the same way (but it might be nice to tell people that
the git clone they get might need updating before it can be checked out
- I am trying to work that one out still)
It occurred to me that I had the rspec gem installed (this will at least
partly give the chance to have a laugh at me…) so I tried putting a
require ‘rubygems’
in script\spec. Voila, I can now run single tests using
ruby script\spec path\to\spec
with success. However,
rake spec
still does nothing (well, nothing visible)
The odd thing is, as I was typing this, it occurred to me I had removed
the rspec gem when trying to get the plugin to work. So I checked, and,
sure enough, no rspec gem.
I think I must be a bear of very little brain, because I cannot for the
life of me work out what is going on!
No, I don’t get any output from that, or by using the spec command.
Nothing got overwritten.
Joe
What happens if you run an individual spec file with ruby from the
command line?
e.g.
ruby spec/models/blog_post_spec.rb
Do you get any more clues from that?
Also bear in mind that script/generate rspec will have overwritten
your spec/spec_helper.rb file, where you might have put custom stuff
for your project (loading fixtures etc) - do a diff against the
version you had before you upgraded and see if there’s anything
obvious missing from the new one.
cheers,
Matt
http://blog.mattwynne.net
In case you wondered: The opinions expressed in this email are my own
and do not necessarily reflect the views of any former, current or
future employers of mine.
On Wed, Aug 27, 2008 at 9:56 AM, Joe Van D. [email protected] wrote:
No, I don’t get any output from that, or by using the spec command.
Nothing got overwritten.
Joe - trying to get caught up w/ my mail 
Did you ever get this resolved?