search for: active_task

Displaying 2 results from an estimated 2 matches for "active_task".

2006 Jan 05
0
[Ajax] draggable_element with button inside
Hi guys, I have the following code: <li id="active_task_<%= active_task.id %>"> <%= active_task.title %>&nbsp;<%= link_to_remote "Edit", :update => "active_task_#{active_task.id}", :url => { :action => "edit", :id => active_task.id } %> </li> The goal is when a us...
2006 Aug 19
1
Testing and Fixtures
...vated). 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.deactivate task.reload assert !task.active? end end