mirror of
https://github.com/internetee/registry.git
synced 2025-06-10 14:44:47 +02:00
parent
90ed23f64d
commit
b6ecae6a35
41 changed files with 1239 additions and 61 deletions
20
test/models/action_test.rb
Normal file
20
test/models/action_test.rb
Normal file
|
@ -0,0 +1,20 @@
|
|||
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
|
Loading…
Add table
Add a link
Reference in a new issue