@@ -37,7 +37,9 @@ class GHReposSpec extends FlatSpec with Matchers with TestUtils {
3737 " Repos >> Get" should " return the expected name when valid repo is provided" in {
3838
3939 val response =
40- Github (accessToken).repos.get(validRepoOwner, validRepoName).exec[Id , HttpResponse [String ]]
40+ Github (accessToken).repos
41+ .get(validRepoOwner, validRepoName)
42+ .exec[Id , HttpResponse [String ]](headerUserAgent)
4143 response should be(' right )
4244 response.toOption map { r ⇒
4345 r.result.name shouldBe validRepoName
@@ -47,14 +49,16 @@ class GHReposSpec extends FlatSpec with Matchers with TestUtils {
4749
4850 it should " return error when an invalid repo name is passed" in {
4951 val response =
50- Github (accessToken).repos.get(validRepoOwner, invalidRepoName).exec[Id , HttpResponse [String ]]
52+ Github (accessToken).repos
53+ .get(validRepoOwner, invalidRepoName)
54+ .exec[Id , HttpResponse [String ]](headerUserAgent)
5155 response should be(' left )
5256 }
5357
5458 " Repos >> ListCommits" should " return the expected list of commits for valid data" in {
5559 val response = Github (accessToken).repos
5660 .listCommits(validRepoOwner, validRepoName)
57- .exec[Id , HttpResponse [String ]]
61+ .exec[Id , HttpResponse [String ]](headerUserAgent)
5862 response should be(' right )
5963
6064 response.toOption map { r ⇒
@@ -66,15 +70,15 @@ class GHReposSpec extends FlatSpec with Matchers with TestUtils {
6670 it should " return error for invalid repo name" in {
6771 val response = Github (accessToken).repos
6872 .listCommits(invalidRepoName, validRepoName)
69- .exec[Id , HttpResponse [String ]]
73+ .exec[Id , HttpResponse [String ]](headerUserAgent)
7074 response should be(' left )
7175 }
7276
7377 " Repos >> ListContributors" should " return the expected list of contributors for valid data" in {
7478 val response =
7579 Github (accessToken).repos
7680 .listContributors(validRepoOwner, validRepoName)
77- .exec[Id , HttpResponse [String ]]
81+ .exec[Id , HttpResponse [String ]](headerUserAgent)
7882 response should be(' right )
7983
8084 response.toOption map { r ⇒
@@ -88,7 +92,7 @@ class GHReposSpec extends FlatSpec with Matchers with TestUtils {
8892 val response =
8993 Github (accessToken).repos
9094 .listContributors(invalidRepoName, validRepoName)
91- .exec[Id , HttpResponse [String ]]
95+ .exec[Id , HttpResponse [String ]](headerUserAgent)
9296 response should be(' left )
9397 }
9498
0 commit comments