scinote-web/test/models/temp_file_test.rb
2016-02-12 16:52:43 +01:00

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