-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from olenagerasimova/1-init
feat: initialise podspec
- Loading branch information
Showing
5 changed files
with
82 additions
and
0 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,34 @@ | ||
/* | ||
* The MIT License (MIT) Copyright (c) 2020-2022 artipie.com | ||
* https://github.com/cocoa-adapter/artipie/LICENSE.txt | ||
*/ | ||
package com.artipie.cocoa.metadata; | ||
|
||
import com.artipie.asto.test.TestResource; | ||
import java.io.IOException; | ||
import org.hamcrest.MatcherAssert; | ||
import org.hamcrest.core.IsInstanceOf; | ||
import org.junit.jupiter.api.Test; | ||
|
||
/** | ||
* Test for {@link Podspec}. | ||
* @since 0.1 | ||
*/ | ||
class PodspecTest { | ||
|
||
@Test | ||
void initializesRuby() throws IOException { | ||
MatcherAssert.assertThat( | ||
Podspec.initiate(new TestResource("example.spec").asInputStream()), | ||
new IsInstanceOf(Podspec.Ruby.class) | ||
); | ||
} | ||
|
||
@Test | ||
void initializesJson() throws IOException { | ||
MatcherAssert.assertThat( | ||
Podspec.initiate(new TestResource("example.spec.json").asInputStream()), | ||
new IsInstanceOf(Podspec.Json.class) | ||
); | ||
} | ||
} |