mirror of
https://github.com/indentlabs/notebook.git
synced 2025-10-26 11:19:22 +00:00
18 lines
522 B
Ruby
18 lines
522 B
Ruby
require 'test_helper'
|
|
|
|
# Tests for the Magic model class
|
|
class MagicTest < ActiveSupport::TestCase
|
|
test 'magic not valid without a name' do
|
|
skip 'Validation disabled due to database migration conflicts.'
|
|
magic = magics(:wizard)
|
|
magic.name = nil
|
|
|
|
refute magic.valid?, 'Magic name is not being validated for presence'
|
|
end
|
|
|
|
test 'magic fixture assumptions' do
|
|
assert_not_nil magics(:wizard), 'Magics fixture is unavailable'
|
|
assert magics(:wizard).valid?, 'Magics fixture is not valid'
|
|
end
|
|
end
|