mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-11 10:06:53 +08:00
13 lines
284 B
Ruby
13 lines
284 B
Ruby
require 'test_helper'
|
|
|
|
class TempFileTest < ActiveSupport::TestCase
|
|
|
|
def setup
|
|
@temp_file = temp_files(:one)
|
|
end
|
|
|
|
test "should not save temp file without session" do
|
|
@temp_file.session_id = nil
|
|
assert_not @temp_file.save, "Saved temp file without session"
|
|
end
|
|
end
|