Skip to content

Commit

Permalink
Update features/step_definitions/steps.rb
Browse files Browse the repository at this point in the history
Co-authored-by: Slava Semushin <[email protected]>
  • Loading branch information
pnatashap and php-coder authored Jan 18, 2024
1 parent 0f9fc5b commit 93eb0d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion features/step_definitions/steps.rb
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
end

Then(/^Text File "([^"]+)" contains "([^"]+)"$/) do |file, substring|
raise "File #{file} doesn't exit" unless File.exist?(file)
raise "File #{file} doesn't exist" unless File.exist?(file)

content = File.read(file)
raise "File #{file} doesn't contain \"#{substring}\":\n#{content}" \
Expand Down

0 comments on commit 93eb0d3

Please sign in to comment.