mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-14 21:24:54 +08:00
26 lines
574 B
Ruby
26 lines
574 B
Ruby
require 'test_helper'
|
|
|
|
class AssetTextDatumTest < ActiveSupport::TestCase
|
|
def setup
|
|
@asset_data = asset_text_datum(:one)
|
|
end
|
|
|
|
test "should validate with valid data" do
|
|
skip
|
|
assert @asset_data.valid?
|
|
end
|
|
|
|
test "should check if data is present" do
|
|
skip
|
|
@asset_data.data = ""
|
|
assert_not @assert_data.valid?
|
|
@asset_data.data = nil
|
|
assert_not @assert_data.valid?
|
|
end
|
|
|
|
test "should check if associated asset is valid" do
|
|
skip
|
|
assert_not asset_text_datum(:invalid_asset_id)
|
|
assert_not asset_text_datum(:invalid_asset_value)
|
|
end
|
|
end
|