The mocking and stubbing in the controller tests is unfortunate, but the models interact directly with the filesystem using the trace id so that's hard to control any other way.
10 lines
237 B
Ruby
10 lines
237 B
Ruby
require "test_helper"
|
|
|
|
class TracepointTest < ActiveSupport::TestCase
|
|
def test_timestamp_required
|
|
tracepoint = create(:tracepoint)
|
|
assert tracepoint.valid?
|
|
tracepoint.timestamp = nil
|
|
assert !tracepoint.valid?
|
|
end
|
|
end
|