search for: tasktest

Displaying 7 results from an estimated 7 matches for "tasktest".

Did you mean: masktest
2008 Feb 12
4
Funny behavior with Fixtures... on Ubuntu..
Hey Guys, I''ve got a test class that loads a bunch of fixtures. My understanding is that fixtures are reloaded between 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,...
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:0...
2006 Jul 29
2
Cannot save Date field
...from schema.rb > 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/.
2006 Aug 19
1
Testing and Fixtures
...nd_all_for_team method runs, and doesn''t find the expected number of records (because one of them has been de-activated). Am I doing something wrong, or do the fixtures not get loaded every time? code snippet: require File.dirname(__FILE__) + ''/../test_helper'' class TaskTest < Test::Unit::TestCase fixtures :employees, :teams, :states, :tasks def test_find_all_for_team active_tasks = Task.find_all_for_team assert_equal 3, active_tasks.size end def test_deactivate task = Task.find(1) assert task.active? task....
2006 Feb 15
2
Polymorphic joins work one way, but not the other
...ot;, 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'' test/unit/task_test.rb:17:in `test_polymorphics'' 2 tests, 7 assertions, 0 failures, 1 errors...
2008 Apr 16
8
Will acts_as_taggable_on_steroids and better_nested_set work together?
...task1.save assert task1.destroy end </code> This is my task model <code> class Task < ActiveRecord::Base acts_as_taggable acts_as_nested_set belongs_to :user validates_presence_of :user end </code> The result of running the test: 1) Error: test_should_destroy(TaskTest): SystemStackError: stack level too deep /Users/alan/Projects/superb/vendor/plugins/acts_as_taggable_on_steroids/lib/acts_as_taggable.rb:220:in `reload_without_tag_list'' /Users/alan/Projects/superb/vendor/plugins/acts_as_taggable_on_steroids/lib/acts_as_taggable.rb:220:in `reload...
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