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] rspec 1.2.9 rspec-rails 1.2.9 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 examples pass. 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." got nil (compared using eql?) /Users/liseki/work/wwror/adify/spec/models/user_spec.rb:35:in `block (2 levels) in <top (required)>' /opt/local/lib/ruby1.9/1.9.1/timeout.rb:44:in `timeout' A similar thing (timeouts) happens for some controllers as seen in the trace below ActiveRecord::RecordInvalid in 'UserSessionsController attempting sign in when already signed in should set flash notice and redirect to the signed-in-user's homepage' Validation failed: /opt/local/lib/ruby1.9/gems/1.9.1/gems/activerecord-2.3.4/lib/active_record/validations.rb:1090:in `save_with_validation!' /opt/local/lib/ruby1.9/gems/1.9.1/gems/activerecord-2.3.4/lib/active_record/dirty.rb:87:in `save_with_dirty!' /opt/local/lib/ruby1.9/gems/1.9.1/gems/activerecord-2.3.4/lib/active_record/transactions.rb:200:in `block (2 levels) in save_with_transactions!' /opt/local/lib/ruby1.9/gems/1.9.1/gems/activerecord-2.3.4/lib/active_record/connection_adapters/abstract/database_statements.rb:136:in `transaction' /opt/local/lib/ruby1.9/gems/1.9.1/gems/activerecord-2.3.4/lib/active_record/transactions.rb:182:in `transaction' /opt/local/lib/ruby1.9/gems/1.9.1/gems/activerecord-2.3.4/lib/active_record/transactions.rb:200:in `block in save_with_transactions!' /opt/local/lib/ruby1.9/gems/1.9.1/gems/activerecord-2.3.4/lib/active_record/transactions.rb:208:in `rollback_active_record_state!' /opt/local/lib/ruby1.9/gems/1.9.1/gems/activerecord-2.3.4/lib/active_record/transactions.rb:200:in `save_with_transactions!' /opt/local/lib/ruby1.9/gems/1.9.1/gems/notahat-machinist-1.0.3/lib/machinist/active_record.rb:54:in `make' /Users/liseki/work/wwror/adify/spec/support/authentication_helper.rb:3:in `sign_in' /Users/liseki/work/wwror/adify/spec/controllers/user_sessions_controller_spec.rb:47:in `block (2 levels) in <top (required)>' /opt/local/lib/ruby1.9/1.9.1/timeout.rb:44:in `timeout' Any ideas would be appreciated. Thanks. -- Posted via http://www.ruby-forum.com/. _______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users