[rspec-users] timeouts with ruby 1.9.1
lists at ruby-forum.com
Tue Oct 6 13:08:03 EDT 2009
I find myself in a confused spot. Please note I am running
OS X 10.5
ruby 1.9.1p129 (2009-05-12 revision 23412) [i386-darwin9]
TextMate Version 1.5.8 (1509)
I have a user model and a corresponding user_spec.rb.file. When I run
user_spec.rb in TextMate all examples pass. All the examples also pass
when I run ./script/spec spec/ and ./script/spec spec/models and
./script/spec/models/user_spec.rb. However when I run rake spec it
suddenly throws errors. Weird enough, when I run rake spec:models all
Under pinning all this weird behaviour (WBDD :p) is the timeouts that
crop up. Below is a stacktrace (that's as far as it goes) of the
timeouts that crop up when I run rake spec.
'User validation should require a name' FAILED
expected "is required."
(compared using eql?)
/Users/liseki/work/wwror/adify/spec/models/user_spec.rb:35:in `block (2
levels) in <top (required)>'
A similar thing (timeouts) happens for some controllers as seen in the
ActiveRecord::RecordInvalid in 'UserSessionsController attempting sign
in when already signed in should set flash notice and redirect to the
`block (2 levels) in save_with_transactions!'
`block in save_with_transactions!'
`block (2 levels) in <top (required)>'
Any ideas would be appreciated. Thanks.
Posted via http://www.ruby-forum.com/.
More information about the rspec-users