logger,
		)
	})

	Describe("NewScript", func() {
		It("returns script with relative job paths to the base directory", func() {
			script := scriptProvider.NewScript("myjob", "the-best-hook-ever")
			Expect(script.Tag()).To(Equal("myjob"))
			Expect(script.Path()).To(Equal("/the/base/dir/jobs/myjob/bin/the-best-hook-ever"))
		})
	})

	Describe("NewDrainScript", func() {
		It("returns drain script", func() {
			params := &fakedrain.FakeScriptParams{}
			script := scriptProvider.NewDrainScript("foo", params)
			Expect(script.Tag()).To(Equal("foo"))
			Expect(script.Path()).To(Equal("/the/base/dir/jobs/foo/bin/drain"))
			Expect(script.(boshdrain.ConcreteScript).Params()).To(Equal(params))
		})
	})

	Describe("NewParallelScript", func() {
		It("returns parallel script", func() {
			scripts := []boshscript.Script{&fakescript.FakeScript{}}
			script := scriptProvider.NewParallelScript("foo", scripts)
			Expect(script).To(Equal(boshscript.NewParallelScript("foo", scripts, logger)))
		})
	})
})
	boshlog "github.com/cloudfoundry/bosh-utils/logger"
)

var _ = Describe("ParallelScript", func() {
	var (
		scripts        []boshscript.Script
		parallelScript boshscript.ParallelScript
	)

	BeforeEach(func() {
		scripts = []boshscript.Script{}
	})

	JustBeforeEach(func() {
		logger := boshlog.NewLogger(boshlog.LevelNone)
		parallelScript = boshscript.NewParallelScript("run-me", scripts, logger)
	})

	Describe("Tag", func() {
		It("returns empty string", func() {
			Expect(parallelScript.Tag()).To(Equal(""))
		})
	})

	Describe("Path", func() {
		It("returns empty string", func() {
			Expect(parallelScript.Path()).To(Equal(""))
		})
	})

	Describe("Exists", func() {