mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-11 16:05:49 +01:00
Remove old plugin test
This commit is contained in:
@@ -1,22 +0,0 @@
|
||||
package plugin
|
||||
|
||||
import org.specs2.mutable._
|
||||
|
||||
class PluginSystemSpec extends Specification {
|
||||
|
||||
"isUpdatable" should {
|
||||
"return true for updattable plugin" in {
|
||||
PluginSystem.isUpdatable("1.0.0", "1.0.1") must beTrue
|
||||
PluginSystem.isUpdatable("1.0.0", "1.1.0") must beTrue
|
||||
PluginSystem.isUpdatable("1.1.1", "1.2.0") must beTrue
|
||||
PluginSystem.isUpdatable("1.2.1", "2.0.0") must beTrue
|
||||
}
|
||||
"return false for not updattable plugin" in {
|
||||
PluginSystem.isUpdatable("1.0.0", "1.0.0") must beFalse
|
||||
PluginSystem.isUpdatable("1.0.1", "1.0.0") must beFalse
|
||||
PluginSystem.isUpdatable("1.1.1", "1.1.0") must beFalse
|
||||
PluginSystem.isUpdatable("2.0.0", "1.2.1") must beFalse
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user