Commit aa514668c4c532dc8c91b709d9529786287a764f
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
Merge branch 'master' into production
Showing
3 changed files
with
13 additions
and
0 deletions
Show diff stats
app/views/tasks/_task.html.erb
| @@ -32,6 +32,8 @@ | @@ -32,6 +32,8 @@ | ||
| 32 | %> | 32 | %> |
| 33 | </div><!-- class="task_decisions" --> | 33 | </div><!-- class="task_decisions" --> |
| 34 | 34 | ||
| 35 | + <div class="task_date"><%= show_time(task.created_at) %></div> | ||
| 36 | + | ||
| 35 | <%= render :partial => 'task_title', :locals => {:task => task} %> | 37 | <%= render :partial => 'task_title', :locals => {:task => task} %> |
| 36 | 38 | ||
| 37 | <div class="task_information"> | 39 | <div class="task_information"> |
public/stylesheets/tasks.css
test/functional/tasks_controller_test.rb
| @@ -80,6 +80,12 @@ class TasksControllerTest < ActionController::TestCase | @@ -80,6 +80,12 @@ class TasksControllerTest < ActionController::TestCase | ||
| 80 | assert_kind_of Array, assigns(:tasks) | 80 | assert_kind_of Array, assigns(:tasks) |
| 81 | end | 81 | end |
| 82 | 82 | ||
| 83 | + should 'display task created_at' do | ||
| 84 | + Task.create!(:requestor => fast_create(Person), :target => profile, :spam => false) | ||
| 85 | + get :index | ||
| 86 | + assert_select '.task_date' | ||
| 87 | + end | ||
| 88 | + | ||
| 83 | should 'list processed tasks without spam' do | 89 | should 'list processed tasks without spam' do |
| 84 | requestor = fast_create(Person) | 90 | requestor = fast_create(Person) |
| 85 | task_spam = create(Task, :status => Task::Status::FINISHED, :requestor => requestor, :target => profile, :spam => true) | 91 | task_spam = create(Task, :status => Task::Status::FINISHED, :requestor => requestor, :target => profile, :spam => true) |