Claudia 7b320fc03b
Move shared Cask examples closer to its clients
In Cask specs, we have recently introduced a couple of specialized
`shared_examples` directories. Those new directories are organized
below their respective packages (for instance,
`cask/artifact/shared_examples` and `cask/cmd/shared_examples`).

This commit moves the rest of the shared examples accordingly.

See also:
https://github.com/Homebrew/brew/pull/5247
2018-11-06 07:19:41 +01:00

24 lines
529 B
Ruby

require "cask/dsl/base"
shared_examples Cask::DSL::Base do
it "supports the token method" do
expect(dsl.token).to eq(cask.token)
end
it "supports the version method" do
expect(dsl.version).to eq(cask.version)
end
it "supports the caskroom_path method" do
expect(dsl.caskroom_path).to eq(cask.caskroom_path)
end
it "supports the staged_path method" do
expect(dsl.staged_path).to eq(cask.staged_path)
end
it "supports the appdir method" do
expect(dsl.appdir).to eq(cask.appdir)
end
end