diff options
Diffstat (limited to 'src/test/groovy/frege/gradle/plugins/FregePluginTest.groovy')
-rw-r--r-- | src/test/groovy/frege/gradle/plugins/FregePluginTest.groovy | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/test/groovy/frege/gradle/plugins/FregePluginTest.groovy b/src/test/groovy/frege/gradle/plugins/FregePluginTest.groovy new file mode 100644 index 0000000..1867c88 --- /dev/null +++ b/src/test/groovy/frege/gradle/plugins/FregePluginTest.groovy @@ -0,0 +1,30 @@ +package frege.gradle.plugins + +import org.gradle.api.Project +import org.gradle.testfixtures.ProjectBuilder +import spock.lang.Specification + +class FregePluginTest extends Specification { + + Project project = ProjectBuilder.builder().build() + + def setup(){ + when: + project.plugins.apply(FregePlugin) + } + + def "adds frege extension"(){ + expect: + project.getExtensions().getByName(FregeBasePlugin.EXTENSION_NAME) != null + } + + def "applies frege base plugin"() { + expect: + project.pluginManager.findPlugin("org.frege-lang.base") != null + } + + def "can be identified by id"(){ + expect: + project.pluginManager.hasPlugin("org.frege-lang") + } +} |