Commit 726cd88ce2a64d225f386d9cc6379c115237b3b7
Committed by
Victor Costa
1 parent
78331cae
Exists in
master
and in
25 other branches
Added field created_at above the task title on tasks list
Showing
3 changed files
with
13 additions
and
0 deletions
Show diff stats
app/views/tasks/_task.html.erb
public/stylesheets/tasks.css
test/functional/tasks_controller_test.rb
... | ... | @@ -49,6 +49,12 @@ class TasksControllerTest < ActionController::TestCase |
49 | 49 | assert_kind_of Array, assigns(:tasks) |
50 | 50 | end |
51 | 51 | |
52 | + should 'display task created_at' do | |
53 | + Task.create!(:requestor => fast_create(Person), :target => profile, :spam => false) | |
54 | + get :index | |
55 | + assert_select '.task_date' | |
56 | + end | |
57 | + | |
52 | 58 | should 'list processed tasks without spam' do |
53 | 59 | requestor = fast_create(Person) |
54 | 60 | task_spam = create(Task, :status => Task::Status::FINISHED, :requestor => requestor, :target => profile, :spam => true) | ... | ... |