mirror of
https://github.com/internetee/registry.git
synced 2025-06-05 04:07:33 +02:00
20 lines
No EOL
407 B
Ruby
20 lines
No EOL
407 B
Ruby
require 'test_helper'
|
|
|
|
class ActionTest < ActiveSupport::TestCase
|
|
setup do
|
|
@action = actions(:contact_update)
|
|
end
|
|
|
|
def test_fixture_is_valid
|
|
assert @action.valid?
|
|
end
|
|
|
|
def test_invalid_with_unsupported_operation
|
|
@action.operation = 'invalid'
|
|
assert @action.invalid?
|
|
end
|
|
|
|
def test_notification_key_for_contact
|
|
assert_equal :contact_update, @action.notification_key
|
|
end
|
|
end |