mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-21 09:40:13 +01:00
get test running again for zentest > 4.0.0
also fix other bugs in the tests
This commit is contained in:
parent
ab9fa1fc46
commit
bde079a92b
28 changed files with 65 additions and 73 deletions
|
|
@ -4,7 +4,7 @@ require 'stats_controller'
|
|||
# Re-raise errors caught by the controller.
|
||||
class StatsController; def rescue_action(e) raise e end; end
|
||||
|
||||
class StatsControllerTest < Test::Unit::TestCase
|
||||
class StatsControllerTest < ActionController::TestCase
|
||||
fixtures :users, :preferences, :projects, :contexts, :todos, :recurring_todos, :recurring_todos, :tags, :taggings
|
||||
|
||||
def setup
|
||||
|
|
@ -59,7 +59,7 @@ class StatsControllerTest < Test::Unit::TestCase
|
|||
assert_equal 16, assigns['actions'].count
|
||||
assert_equal 4, assigns['tags_count']
|
||||
assert_equal 2, assigns['unique_tags_count']
|
||||
assert_equal 2.week.ago.utc.beginning_of_day, assigns['first_action'].created_at
|
||||
assert_equal 2.week.ago.beginning_of_day, assigns['first_action'].created_at
|
||||
end
|
||||
|
||||
def test_downdrill
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue