We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86f4f62 commit ee62946Copy full SHA for ee62946
lib/squcumber-postgres/step_definitions/common_steps.rb
@@ -82,13 +82,17 @@
82
83
When(/^the given SQL files are executed$/) do
84
silence_streams(STDERR) do
85
- @sql_files_to_execute.each { |file| TESTING_DATABASE.exec_file(file) }
+ @sql_files_to_execute.each do |file|
86
+ # This overwrites the result if multiple files are executed
87
+ @result = TESTING_DATABASE.exec_file(file)
88
+ end
89
end
90
91
92
When(/^the SQL file "?([^\s"]+)"? is executed/) do |file|
93
- TESTING_DATABASE.exec_file("#{@sql_file_path}/#{file}")
94
95
+ @result = TESTING_DATABASE.exec_file("#{@sql_file_path}/#{file}")
96
97
98
0 commit comments