initial commit

This commit is contained in:
Jens Kraemer
2020-04-22 18:03:56 +08:00
commit 70257cdee0
16 changed files with 331 additions and 0 deletions

21
test/unit/user_test.rb Normal file
View File

@@ -0,0 +1,21 @@
require_relative '../test_helper'
class UserTest < ActiveSupport::TestCase
fixtures :users, :user_preferences
setup do
@user = User.find 1
end
test "should get inactive timer state" do
refute @user.timer_running?
end
test "should start timer and get running state" do
t = Stopwatch::Timer.new @user
t.start
t.save
assert @user.timer_running?
end
end