Module: ChefSpec::API::Link
- Defined in:
- lib/chefspec/api/link.rb
Instance Method Summary collapse
-
#link_to(path) ⇒ ChefSpec::Matchers::LinkToMatcher
Assert that a symlink links to a specific path.
Instance Method Details
#link_to(path) ⇒ ChefSpec::Matchers::LinkToMatcher
Assert that a symlink links to a specific path. This is really syntactic sugar for the following:
expect(chef_run).to create_link('/tmp/thing').with(to: '/tmp/other_thing')
22 23 24 |
# File 'lib/chefspec/api/link.rb', line 22 def link_to(path) ChefSpec::Matchers::LinkToMatcher.new(path) end |