-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add event's name validation We've been using the event's name to know what kind of event it is. I think we should add the name presence validator, what do you think about it? If should be more validations, please let me know, and also, if the validation is not needed/desired feel free to close the pr. * Add constrain to signalman_events name
- Loading branch information
Showing
4 changed files
with
14 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
require "test_helper" | ||
|
||
class Signalman::EventTest < ActiveSupport::TestCase | ||
test "is valid" do | ||
assert Signalman::Event.new(name: "sql.active_record").valid? | ||
end | ||
|
||
test "is not valid" do | ||
assert_not Signalman::Event.new.valid? | ||
end | ||
end |