-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to analytics tracking alongside ja_resource to places that los…
…t tracking
- Loading branch information
Showing
8 changed files
with
113 additions
and
11 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 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,17 @@ | ||
defmodule CodeCorps.Analytics.SegmentTest do | ||
use ExUnit.Case, async: true | ||
|
||
import CodeCorps.Analytics.Segment, only: [get_action_name: 2] | ||
import CodeCorps.Factories | ||
|
||
test "get_action_name/2" do | ||
assert get_action_name(:created, build(:comment)) == "Created Comment" | ||
assert get_action_name(:updated, build(:comment)) == "Updated Comment" | ||
|
||
assert get_action_name(:deleted, build(:user_skill)) == "Removed User Skill" | ||
assert get_action_name(:deleted, build(:user_role)) == "Removed User Role" | ||
assert get_action_name(:deleted, build(:user_category)) == "Removed User Category" | ||
|
||
assert get_action_name(:signed_up, build(:user)) == "Signed Up" | ||
end | ||
end |
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 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 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