# ensure that a new global dependency gets picked up
$ copy-file changes/global-plugins.sbt global/plugins/plugins.sbt
> reload

# check that the class can be loaded
> eval Class.forName("org.junit.Test")

# check that it is on the classpath
> eval (x => ()) : (org.junit.Test => Unit)

# ensure that the global plugin version is overridden by the local version
# (because it's older)
$ copy-file changes/plugins.sbt project/plugins.sbt
> reload
> check

# Test.scala uses the global plugin, which the next step deletes.
$ delete project/Test.scala

# The tests of one scripted run share a directory, and `global` is the part of it that is kept between
# them, so delete what this test installed there.
$ delete global/plugins global/useGlobalAutoPlugin.sbt
$ absent global/plugins global/useGlobalAutoPlugin.sbt
> reload
