[rspec-users] spec_ui problems

Brian Yamabe brian at yamabe.net
Fri Jan 12 18:00:14 EST 2007


While looking into spec_ui, I decided to run the examples.

The watir example works a little, but always chokes on the 'better  
than fudge' spec (failure output below).  Also, is there any command  
to pause the "browser"?  If my connection slows, the test gets out of  
whack.

The selenium example fails right away (output below).  I do have the  
0.9.0 selenium-rc server running.

I executed rake from inside each of the specific example directories.

Thanks for any help.

---Brian Yamabe

watir failure
----------
/opt/local/lib/ruby/gems/1.8/gems/rspec-0.7.5/lib/spec/expectations/ 
sugar.rb:13:in `call': undefined local variable or method  
`current_spec_number' for #<Spec::Ui::WebappFormatter:0x10083d0>  
(NameError)
         from /opt/local/lib/ruby/gems/1.8/gems/rspec-0.7.5/lib/spec/ 
expectations/sugar.rb:13:in `_method_missing'
         from /opt/local/lib/ruby/gems/1.8/gems/rspec-0.7.5/lib/spec/ 
expectations/sugar.rb:9:in `method_missing'
         from /Users/byamabe/Desktop/spec_ui/lib/spec/ui/formatter.rb: 
5:in `extra_failure_content'
         from /Users/byamabe/Desktop/spec_ui/lib/spec/ui/formatter.rb: 
11:in `extra_failure_content'
         from /opt/local/lib/ruby/gems/1.8/gems/rspec-0.7.5/lib/spec/ 
runner/formatter/html_formatter.rb:57:in `spec_failed'
         from /opt/local/lib/ruby/gems/1.8/gems/rspec-0.7.5/lib/spec/ 
runner/reporter.rb:78:in `spec_failed'
         from /opt/local/lib/ruby/gems/1.8/gems/rspec-0.7.5/lib/spec/ 
runner/reporter.rb:27:in `spec_finished'
         from /opt/local/lib/ruby/gems/1.8/gems/rspec-0.7.5/lib/spec/ 
runner/specification.rb:37:in `run'
         from /opt/local/lib/ruby/gems/1.8/gems/rspec-0.7.5/lib/spec/ 
runner/context.rb:57:in `run'
         from /opt/local/lib/ruby/gems/1.8/gems/rspec-0.7.5/lib/spec/ 
runner/context.rb:54:in `each'
         from /opt/local/lib/ruby/gems/1.8/gems/rspec-0.7.5/lib/spec/ 
runner/context.rb:54:in `run'
         from /opt/local/lib/ruby/gems/1.8/gems/rspec-0.7.5/lib/spec/ 
runner/context_runner.rb:23:in `run'
         from /opt/local/lib/ruby/gems/1.8/gems/rspec-0.7.5/lib/spec/ 
runner/context_runner.rb:22:in `each'
         from /opt/local/lib/ruby/gems/1.8/gems/rspec-0.7.5/lib/spec/ 
runner/context_runner.rb:22:in `run'
         from /opt/local/lib/ruby/gems/1.8/gems/rspec-0.7.5/lib/spec/ 
runner/command_line.rb:26:in `run'
         from /opt/local/lib/ruby/gems/1.8/gems/rspec-0.7.5/bin/spec:4
rake aborted!

selenium failure
----------
/opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in  
`gem_original_require': no such file to load -- ./spec/selenium  
(LoadError)
         from /opt/local/lib/ruby/site_ruby/1.8/rubygems/ 
custom_require.rb:27:in `require'
         from ./spec/spec_helper.rb:7
         from /opt/local/lib/ruby/gems/1.8/gems/rspec-0.7.5/lib/spec/ 
runner/option_parser.rb:107:in `require'
         from /opt/local/lib/ruby/gems/1.8/gems/rspec-0.7.5/lib/spec/ 
runner/option_parser.rb:107:in `parse'
         from /opt/local/lib/ruby/1.8/optparse.rb:1218:in `call'
         from /opt/local/lib/ruby/1.8/optparse.rb:1218:in `order!'
         from /opt/local/lib/ruby/1.8/optparse.rb:1205:in `catch'
         from /opt/local/lib/ruby/1.8/optparse.rb:1205:in `order!'
         from /opt/local/lib/ruby/1.8/optparse.rb:1279:in `permute!'
         from /opt/local/lib/ruby/1.8/optparse.rb:1300:in `parse!'
         from /opt/local/lib/ruby/gems/1.8/gems/rspec-0.7.5/lib/spec/ 
runner/option_parser.rb:141:in `parse'
         from /opt/local/lib/ruby/gems/1.8/gems/rspec-0.7.5/lib/spec/ 
runner/option_parser.rb:13:in `create_context_runner'
         from /opt/local/lib/ruby/gems/1.8/gems/rspec-0.7.5/lib/spec/ 
runner/command_line.rb:12:in `run'
         from /opt/local/lib/ruby/gems/1.8/gems/rspec-0.7.5/bin/spec:4


More information about the rspec-users mailing list