openstreetmap-website/test/models/tracepoint_test.rb
Andy Allan 9ab15f38ea Move the tracepoint coordinate format test to the controller test
This allows us to remove the model method
2021-09-29 15:25:28 +01:00

10 lines
240 B
Ruby

require "test_helper"
class TracepointTest < ActiveSupport::TestCase
def test_timestamp_required
tracepoint = create(:tracepoint)
assert tracepoint.valid?
tracepoint.timestamp = nil
assert_not tracepoint.valid?
end
end