mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-26 20:08:51 +01:00
Refer to view values correctly in test
This commit is contained in:
parent
34e0c2b13a
commit
0b3a0b58a8
1 changed files with 4 additions and 3 deletions
|
|
@ -39,9 +39,10 @@ class StatsControllerTest < ActionController::TestCase
|
|||
login_as(:admin_user)
|
||||
get :index
|
||||
assert_response :success
|
||||
assert_equal 4, assigns['tags_count']
|
||||
assert_equal 2, assigns['unique_tags_count']
|
||||
assert_equal 2.week.ago.utc.at_midnight, assigns['first_action'].created_at.utc.at_midnight
|
||||
totals = assigns['stats'].totals
|
||||
assert_equal 4, totals.tags
|
||||
assert_equal 2, totals.unique_tags
|
||||
assert_equal 2.week.ago.utc.at_midnight, totals.first_action_at.utc.at_midnight
|
||||
end
|
||||
|
||||
def test_downdrill
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue