Skip to content

Commit

Permalink
Fix some issues with tests and background processing
Browse files Browse the repository at this point in the history
  • Loading branch information
joshsmith committed Oct 17, 2017
1 parent 0f2bd08 commit cce0920
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
defmodule CodeCorps.GitHub.Event.IssueComment.UserLinkerTest do
@moduledoc false

use CodeCorps.BackgroundProcessingCase
use CodeCorps.DbAccessCase

import CodeCorps.GitHub.TestHelpers
Expand All @@ -10,7 +11,6 @@ defmodule CodeCorps.GitHub.Event.IssueComment.UserLinkerTest do
Repo,
User
}

alias CodeCorps.GitHub.Adapters.User, as: UserAdapter

@payload load_event_fixture("issue_comment_created")
Expand Down
4 changes: 1 addition & 3 deletions test/lib/code_corps/github/event/issues/user_linker_test.exs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
defmodule CodeCorps.GitHub.Event.Issues.UserLinkerTest do
@moduledoc false

use CodeCorps.BackgroundProcessingCase
use CodeCorps.DbAccessCase

import CodeCorps.GitHub.TestHelpers
Expand All @@ -10,7 +11,6 @@ defmodule CodeCorps.GitHub.Event.Issues.UserLinkerTest do
Repo,
User
}

alias CodeCorps.GitHub.Adapters.User, as: UserAdapter

@payload load_event_fixture("issues_opened")
Expand Down Expand Up @@ -62,8 +62,6 @@ defmodule CodeCorps.GitHub.Event.Issues.UserLinkerTest do

assert preinserted_user.id == returned_user.id
assert Repo.get_by(User, attributes)


end

test "creates user if none is found by any other method" do
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
defmodule CodeCorps.GitHub.Event.PullRequest.UserLinkerTest do
@moduledoc false

use CodeCorps.BackgroundProcessingCase
use CodeCorps.DbAccessCase

import CodeCorps.GitHub.TestHelpers
Expand All @@ -10,7 +11,6 @@ defmodule CodeCorps.GitHub.Event.PullRequest.UserLinkerTest do
Repo,
User
}

alias CodeCorps.GitHub.Adapters.User, as: UserAdapter

@payload load_event_fixture("pull_request_opened")
Expand Down

0 comments on commit cce0920

Please sign in to comment.