mirror of
https://github.com/capistrano/capistrano
synced 2023-03-27 23:21:18 -04:00
f5a585b3a4
This commit adds the outlines of a testing framework for Cap tasks. Currently just the `cap install` and `cap deploy` tasks are covered. For now, these tests can only be run if it is `ssh localhost` will work for you and are currently excluded from the suite. It is my intention to eventually replace the `sshkit` backend with a test backend, but for now this is good enough to prevent simple regressions.
5 lines
122 B
Ruby
5 lines
122 B
Ruby
RSpec::Matchers.define :be_a_symlink_to do |expected|
|
|
match do |actual|
|
|
File.identical?(expected, actual)
|
|
end
|
|
end
|