Rename all `has_*' test keywords
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
@sshd
|
||||
Feature: `has_dir' condition keyword
|
||||
Feature: `dir?' condition keyword
|
||||
|
||||
Background:
|
||||
Given a recipe with:
|
||||
@@ -7,7 +7,7 @@ Feature: `has_dir' condition keyword
|
||||
target 'some_host.test'
|
||||
|
||||
task :testing_directory_existence do
|
||||
condition { has_dir 'some_directory' }
|
||||
condition { dir? 'some_directory' }
|
||||
|
||||
echo 'evaluated'
|
||||
end
|
@@ -1,5 +1,5 @@
|
||||
@sshd
|
||||
Feature: `has_env' condition keyword
|
||||
Feature: `env?' condition keyword
|
||||
|
||||
Scenario: succeeds when remote environment variable is defined
|
||||
Given a recipe with:
|
||||
@@ -7,7 +7,7 @@ Feature: `has_env' condition keyword
|
||||
target 'some_host.test'
|
||||
|
||||
task :testing_env_var_definition do
|
||||
condition { has_env :shell }
|
||||
condition { env? :shell }
|
||||
|
||||
echo 'evaluated'
|
||||
end
|
||||
@@ -21,7 +21,7 @@ Feature: `has_env' condition keyword
|
||||
target 'some_host.test'
|
||||
|
||||
task :testing_env_var_definition do
|
||||
condition { has_env :inexistent_var }
|
||||
condition { env? :inexistent_var }
|
||||
|
||||
echo 'evaluated'
|
||||
end
|
@@ -1,5 +1,5 @@
|
||||
@sshd
|
||||
Feature: `has_executable' condition keyword
|
||||
Feature: `executable?' condition keyword
|
||||
|
||||
Scenario: succeeds when remote executable is available
|
||||
Given a recipe with:
|
||||
@@ -7,7 +7,7 @@ Feature: `has_executable' condition keyword
|
||||
target 'some_host.test'
|
||||
|
||||
task :testing_executable_availability do
|
||||
condition { has_executable 'true' }
|
||||
condition { executable? 'true' }
|
||||
|
||||
echo 'evaluated'
|
||||
end
|
||||
@@ -21,7 +21,7 @@ Feature: `has_executable' condition keyword
|
||||
target 'some_host.test'
|
||||
|
||||
task :testing_executable_availability do
|
||||
condition { has_executable 'some_non_existent_executable' }
|
||||
condition { executable? 'some_non_existent_executable' }
|
||||
|
||||
echo 'evaluated'
|
||||
end
|
@@ -1,5 +1,5 @@
|
||||
@sshd
|
||||
Feature: `has_file' condition keyword
|
||||
Feature: `file?' condition keyword
|
||||
|
||||
Background:
|
||||
Given a recipe with:
|
||||
@@ -7,7 +7,7 @@ Feature: `has_file' condition keyword
|
||||
target 'some_host.test'
|
||||
|
||||
task :testing_file_existence do
|
||||
condition { has_file 'some_file' }
|
||||
condition { file? 'some_file' }
|
||||
|
||||
echo 'evaluated'
|
||||
end
|
@@ -7,13 +7,13 @@ Feature: negated test prefix (no_)
|
||||
target 'some_host.test'
|
||||
|
||||
task :successful_test do
|
||||
condition { has_env :shell }
|
||||
condition { env? :shell }
|
||||
|
||||
echo 'successful_test'
|
||||
end
|
||||
|
||||
task :negated_test do
|
||||
condition { no_has_env :shell }
|
||||
condition { no_env? :shell }
|
||||
|
||||
echo 'negated_test'
|
||||
end
|
||||
@@ -28,13 +28,13 @@ Feature: negated test prefix (no_)
|
||||
target 'some_host.test'
|
||||
|
||||
task :failing_test do
|
||||
condition { has_env :inexistent_var }
|
||||
condition { env? :inexistent_var }
|
||||
|
||||
echo 'failing_test'
|
||||
end
|
||||
|
||||
task :negated_test do
|
||||
condition { no_has_env :inexistent_var }
|
||||
condition { no_env? :inexistent_var }
|
||||
|
||||
echo 'negated_test'
|
||||
end
|
||||
|
Reference in New Issue
Block a user