mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-13 12:47:11 +08:00
14 lines
284 B
Ruby
14 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
|