Skip to content

Commit d1c652e

Browse files
committed
update tests - api instantiations
1 parent 3f20733 commit d1c652e

File tree

5 files changed

+7
-9
lines changed

5 files changed

+7
-9
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ This library is available via Maven Central [here](https://search.maven.org/arti
2828
<dependency>
2929
<groupId>com.adamratzman</groupId>
3030
<artifactId>spotify-api-kotlin</artifactId>
31-
<version>2.1.3</version>
31+
<version>2.2.0</version>
3232
</dependency>
3333
3434
<repository>
@@ -44,7 +44,7 @@ repositories {
4444
jcenter()
4545
}
4646
47-
compile group: 'com.adamratzman', name: 'spotify-api-kotlin', version: '2.1.3'
47+
compile group: 'com.adamratzman', name: 'spotify-api-kotlin', version: '2.2.0'
4848
```
4949

5050
To use the latest snapshot instead, you must add the Jitpack repository as well

TESTING.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Testing
22

3-
We use [Spek](https://github.com/spekframework/spek) to run unit tests.
3+
We use [Spek](https://github.com/spekframework/spek) to run unit tests. You must add Maven Central to the gradle repositories
4+
in order to pull Spek.
45

56
To run **only** public endpoint tests, run
67

src/main/kotlin/com/adamratzman/spotify/models/Authentication.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* Spotify Web API - Kotlin Wrapper; MIT License, 2019; Original author: Adam Ratzman */
22
package com.adamratzman.spotify.models
33

4-
import com.adamratzman.spotify.main.SpotifyScope
4+
import com.adamratzman.spotify.SpotifyScope
55
import com.beust.klaxon.Json
66

77
/**

src/test/kotlin/com/adamratzman/spotify/Common.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
/* Spotify Web API - Kotlin Wrapper; MIT License, 2019; Original author: Adam Ratzman */
22
package com.adamratzman.spotify
33

4-
import com.adamratzman.spotify.main.spotifyApi
5-
64
val api = when {
75
System.getProperty("spotifyRedirectUri") == null -> {
86
spotifyApi {

src/test/kotlin/com/adamratzman/spotify/utilities/UtilityTests.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
/* Spotify Web API - Kotlin Wrapper; MIT License, 2019; Original author: Adam Ratzman */
22
package com.adamratzman.spotify.utilities
33

4-
import com.adamratzman.spotify.api
54
import com.adamratzman.spotify.SpotifyClientAPI
6-
import com.adamratzman.spotify.main.spotifyApi
7-
5+
import com.adamratzman.spotify.api
6+
import com.adamratzman.spotify.spotifyApi
87
import org.junit.jupiter.api.Assertions.assertDoesNotThrow
98
import org.junit.jupiter.api.assertThrows
109
import org.spekframework.spek2.Spek

0 commit comments

Comments
 (0)