diff --git a/features/actions/mkdir.feature b/features/actions/mkdir.feature index 530d4b6..393ad9b 100644 --- a/features/actions/mkdir.feature +++ b/features/actions/mkdir.feature @@ -13,7 +13,7 @@ Feature: `mkdir' task action Scenario: creates directory given as argument When I successfully execute the recipe on remote target - Then the remote directory "some_directory" must exists + Then the remote directory "some_directory" must exist Scenario: creates directory with given attributes When I successfully execute the recipe on remote target @@ -28,4 +28,4 @@ Feature: `mkdir' task action end """ When I successfully execute the recipe on remote target - Then the remote directory "some/directory" must exists + Then the remote directory "some/directory" must exist diff --git a/features/steps/remote_steps.rb b/features/steps/remote_steps.rb index 68518de..0938f61 100644 --- a/features/steps/remote_steps.rb +++ b/features/steps/remote_steps.rb @@ -16,7 +16,7 @@ Given /^a remote file named "([^"]+)" with "([^"]+)"$/ do |file_name, content| write_file file_name, content end -Then /^the remote directory "([^"]+)" must exists$/ do |path| +Then /^the remote directory "([^"]+)" must exist$/ do |path| check_directory_presence [path], true end diff --git a/spec/producer/core/actions/mkdir_spec.rb b/spec/producer/core/actions/mkdir_spec.rb index f04abe7..c4fb952 100644 --- a/spec/producer/core/actions/mkdir_spec.rb +++ b/spec/producer/core/actions/mkdir_spec.rb @@ -47,7 +47,7 @@ module Producer::Core end end - context 'when parent directories does not exists' do + context 'when parent directories does not exist' do let(:path) { 'some/path' } it 'creates parent directories' do