Displaying 6 results from an estimated 6 matches for "task_test".
Did you mean:
asm_test
2008 Feb 12
4
Funny behavior with Fixtures... on Ubuntu..
...etween each test... and I even have the
following two method calls at the top of my test class to make doubly
sure...
class TaskTest < Test::Unit::TestCase
self.use_transactional_fixtures = true
self.use_instantiated_fixtures = false
When I run my tests individually... as in:
ruby unit/task_test.rb --name test_update
The tests run successfully to completion. However, when I try to run the
entire test file in one go, I get failures. As in:
ruby unit/task_test.rb
> 8) Error:
> test_update(TaskTest):
> ActiveRecord::RecordNotFound: Couldn''t find Task with ID=...
2008 Feb 15
3
Ugly, garbled output from autotest
I am getting this horribly ugly output from autotest when a test fails.
Normal output from ''rake test'':
--
1) Failure:
test_export_format(TaskTest) [./test/unit/task_test.rb:61]:
<"Michael Alvarez"> expected but was
<nil>.
--
Same failure, as seen via autotest:
--
1) Failure:
test_export_format(TaskTest) [./test/unit/task_test.rb:61]:
--- /var/folders/sv/svC-nvosEl4YtAKb5zULK++++TI/-Tmp-/expect.596.0
2008-02-15 15:27:00.000000000 -0600
+++ /v...
2006 Feb 15
2
Polymorphic joins work one way, but not the other
...tasks(:simple_task).save!
assert_equal 2, tasks(:simple_task).events.size
assert_equal "simple event 1",
tasks(:simple_task).events.find(1).note
assert_equal "simple task", events(:simple_event_1).task.title
end
All asserts pass except the last one:
ruby test/unit/task_test.rb
Loaded suite test/unit/task_test
Started
E.
Finished in 1.103896 seconds.
1) Error:
test_polymorphics(TaskTest):
NoMethodError: undefined method `task'' for #<Event:0x22258a0>
_RAILS_ROOT_/config/../vendor/rails/activerecord/lib/active_record/base.rb:1565:in
`method_missing...
2006 Jul 29
2
Cannot save Date field
...t; t.column "due_date", :date
My fixture tasks.yml file has the following line
> due_date: 07/17/2006
My test_task.rb has the following line
> assert_equal "07/17/2006", @task.due_date
When I run the test, it fails. It said
testcreate(TaskTest) [test/unit/task_test.rb:16]
<"07/17/2006"> expected by was
<nil>
Does anyone know why I cannot save the date field?
The format of the date passed from my page is "%m/%d/%Y".
Thanks.
Arnold.
--
Posted via http://www.ruby-forum.com/.
2008 Apr 16
8
Will acts_as_taggable_on_steroids and better_nested_set work together?
...ctive_record/transactions.rb:80:in
`transaction''
/Library/Ruby/Gems/1.8/gems/activerecord-2.0.2/lib/active_record/transactions.rb:100:in
`transaction''
/Library/Ruby/Gems/1.8/gems/activerecord-2.0.2/lib/active_record/transactions.rb:104:in
`destroy''
./test/unit/task_test.rb:37:in `test_should_destroy''
/Library/Ruby/Gems/1.8/gems/activesupport-2.0.2/lib/active_support/testing/default.rb:7:in
`run''
If I comment out "acts_as_taggable", then the test runs fine.
What is really driving me crazy is that in normal execution, the
destroy wo...
2009 Jul 20
9
Upgrade server to run on Rails 2.3.2/F11
Note that one of the 8 patches (#6) will be sent separately in reply
to this email, as some of the replaced lines are too long, so git
won't let me send the email. However, there is nothing wrong with
that patch, and it should be applied in the sequence listed below.
Note also that I assume this will be tested on a clean f11 install, rather
than an upgrade of an existing ovirt server