[rspec-users] autotest and rspec_on_rails not happy

Tom Stuart tom at experthuman.com
Thu May 31 10:11:42 EDT 2007


On 31 May 2007, at 12:41, David Chelimsky wrote:
> I've not heard of this before and can't reproduce it.

Below is how I can reproduce on a fresh Rails project. Does this work  
for you too, or is it something weird about my environment?

(Note that, once autotest is running, I've simply inserted its  
subsequent output below each command that prompted it, for lack of  
any better way of showing the activity in two concurrent windows.)

Cheers,
-Tom

--

~$ uname -a
Linux 2.6.20-16-server #2 SMP Wed May 23 01:53:06 UTC 2007 i686 GNU/ 
Linux
~$ ruby -v
ruby 1.8.5 (2006-08-25) [i486-linux]
~$ rails -v
Rails 1.2.3
~$ zentest -v
zentest v3.6.0

~$ rails myproject
~$ mysqladmin -u root create myproject_development
~$ cd myproject/
~/myproject$ ./script/plugin install svn://rubyforge.org/var/svn/ 
rspec/trunk/rspec
~/myproject$ ./script/plugin install svn://rubyforge.org/var/svn/ 
rspec/trunk/rspec_on_rails
~/myproject$ ./script/generate rspec
~/myproject$ ./script/generate rspec_scaffold Post title:string  
body:text
~/myproject$ rake db:migrate

~/myproject$ autotest
script/spec -O spec/spec.opts spec/views/posts/new.rhtml_spec.rb spec/ 
views/posts/index.rhtml_spec.rb spec/views/posts/show.rhtml_spec.rb  
spec/controllers/posts_controller_spec.rb spec/views/posts/ 
edit.rhtml_spec.rb spec/helpers/posts_helper_spec.rb spec/models/ 
post_spec.rb
...........................................
43 examples, 0 failures

~/myproject$ sed -ie '5,10s/^/#/' app/controllers/posts_controller.rb
script/spec -O spec/spec.opts spec/controllers/posts_controller_spec.rb
.........................FF.FF........
38 examples, 4 failures

~/myproject$ touch app/controllers/posts_controller.rb
script/spec -O spec/spec.opts  spec/controllers/ 
posts_controller_spec.rb; script/spec -O spec/spec.opts  spec/ 
controllers/posts_controller_spec.rb
.........................FF.FF........
38 examples, 4 failures
.........................FF.FF........
38 examples, 4 failures

~/myproject$ touch app/controllers/posts_controller.rb
script/spec -O spec/spec.opts  spec/controllers/ 
posts_controller_spec.rb; script/spec -O spec/spec.opts  spec/ 
controllers/posts_controller_spec.rb; script/spec -O spec/spec.opts   
spec/controllers/posts_controller_spec.rb; script/spec -O spec/ 
spec.opts  spec/controllers/posts_controller_spec.rb
.........................FF.FF........
38 examples, 4 failures
.........................FF.FF........
38 examples, 4 failures
.........................FF.FF........
38 examples, 4 failures
.........................FF.FF........
38 examples, 4 failures

~/myproject$ sed -ie '5,10s/^#//' app/controllers/posts_controller.rb
script/spec -O spec/spec.opts  spec/controllers/ 
posts_controller_spec.rb; script/spec -O spec/spec.opts  spec/ 
controllers/posts_controller_spec.rb; script/spec -O spec/spec.opts   
spec/controllers/posts_controller_spec.rb; script/spec -O spec/ 
spec.opts  spec/controllers/posts_controller_spec.rb; script/spec -O  
spec/spec.opts  spec/controllers/posts_controller_spec.rb; script/ 
spec -O spec/spec.opts  spec/controllers/posts_controller_spec.rb;  
script/spec -O spec/spec.opts  spec/controllers/ 
posts_controller_spec.rb; script/spec -O spec/spec.opts  spec/ 
controllers/posts_controller_spec.rb
......................................
38 examples, 0 failures
......................................
38 examples, 0 failures
......................................
38 examples, 0 failures
......................................
38 examples, 0 failures
......................................
38 examples, 0 failures
......................................
38 examples, 0 failures
......................................
38 examples, 0 failures
......................................
38 examples, 0 failures
script/spec -O spec/spec.opts spec/views/posts/new.rhtml_spec.rb spec/ 
views/posts/index.rhtml_spec.rb spec/views/posts/show.rhtml_spec.rb  
spec/controllers/posts_controller_spec.rb spec/views/posts/ 
edit.rhtml_spec.rb spec/helpers/posts_helper_spec.rb spec/models/ 
post_spec.rb
...........................................
43 examples, 0 failures

~/myproject$ touch app/controllers/posts_controller.rb
script/spec -O spec/spec.opts spec/controllers/posts_controller_spec.rb
......................................
38 examples, 0 failures



More information about the rspec-users mailing list