Displaying 6 results from an estimated 6 matches for "test_delete".
2005 Dec 23
1
Salted Login Error
Anyone know what''s causing this?
------------------------------------------------------------------------
1) Error:
test_delete(UserControllerTest):
NoMethodError: undefined method `advance_by_days='' for Time:Class
./test/functional/user_controller_test.rb:132:in `test_delete''
2) Error:
test_signup(UserControllerTest):
NoMethodError: undefined method `advance_by_days='' for Time:Class
./...
2007 Sep 02
4
unit test failing
...ot;, so each test should roll back.
Run individually, all my tests succeed. But running "rake
test:units", I get the below error in 5 test cases. I''m not sure how
to solve this since I''m not sure how to debug tasks run thru rake. Any
ideas are appreciated.
1) Error:
test_delete(OrderTest):
ActiveRecord::RecordInvalid: Validation failed: Orders is invalid
/var/lib/gems/1.8/gems/activerecord-1.15.3/lib/active_record/
validations.rb:764:in `save_without
_transactions!''
/var/lib/gems/1.8/gems/activerecord-1.15.3/lib/active_record/
transactions.rb:133:in `save...
2006 Sep 14
1
Possiible Bug ? indexWriter#doc_count counts deleted docs after #commit
...@writer = nil
end
add_then_delete_fred
add_then_delete_fred
add_then_delete_fred
@reader = Ferret::Index::IndexReader.new(@dir)
p "reader count=#{@reader.num_docs}"
@writer = Ferret::Index::IndexWriter.new(:dir => @dir)
p "writer count=#{@writer.doc_count}"
===
$>ruby test_delete.rb
"0.10.4"
"adding doc :id=44"
"doc_count=1"
"deleting doc :id=44"
"doc_count=1"
"adding doc :id=44"
"doc_count=2"
"deleting doc :id=44"
"doc_count=2"
"adding doc :id=44"
"doc_count=3"
&qu...
2006 Apr 23
13
post() to other controller in functional test?
In a functional test, I want to call an action in another controller
(a login) before testing things in the current controller. As far as I
can tell from the extremely sparse documentation and the AWDR book,
this seems to be impossible. The post() functions takes an action
argument only, and that''s that. Surely I must be misunderstanding
things?
--
Calle Dybedahl
2005 Jul 05
2
Salted hash login generator (verification problem?)
...itialized constant RAILS_DEFAULT_LOGGER
./test/functional/admin/../../../config/environment.rb:66: warning:
already initialized constant Controllers
Loaded suite
/usr/local/lib/ruby/gems/1.8/gems/rake-0.5.4/lib/rake/rake_test_loader
Started
....E.E..F
Finished in 10.11708 seconds.
1) Error:
test_delete(UserControllerTest):
NoMethodError: undefined method `deleted='' for nil:NilClass
./test/functional/../../config/..//app/controllers/user_controller.rb:
141:in `restore_deleted''
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.8.1/lib/
action_controller/base.rb:708:in...
2005 Dec 15
4
Order of tests matters???
I have a problem with tests. I always thought that the order of tests doesn''t
matter because the fixtures are reloaded before every test method. However, I''ve
just discovered that this isn''t true.
This is a quote from the "Guide to testing the rails" howto:
"... if we had another test method, we wouldn’t have 10 users on the 2nd test
because they would