Skip to content

Commit 5b01b0a

Browse files
committed
Fix build
1 parent 9a90f51 commit 5b01b0a

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

spec/spec_helper.rb

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -91,16 +91,10 @@ module TestSessions
9191

9292
if ENV["CI"] && example.exception
9393
session = @session || TestSessions::Cuprite
94-
raise session.driver.browser.logger.string
9594
save_exception_aftifacts(session.driver.browser, example.metadata)
9695
end
9796
end
9897

99-
config.after do
100-
FileUtils.rm_rf(CUPRITE_ROOT + "/screenshots")
101-
FileUtils.rm_rf(CUPRITE_ROOT + "/save_path_tmp")
102-
end
103-
10498
Capybara::SpecHelper.configure(config)
10599

106100
def save_exception_aftifacts(browser, meta)
@@ -115,6 +109,6 @@ def save_exception_aftifacts(browser, meta)
115109

116110
log_name = "ferrum-#{filename}-#{line_number}-#{timestamp}.txt"
117111
log_path = "#{ENV["CIRCLE_ARTIFACTS"]}/logs/#{log_name}"
118-
File.open(log_path, 'wb') { |file| file.write(FERRUM_LOGGER.string) }
112+
File.open(log_path, 'wb') { |file| file.write(browser.logger.string) }
119113
end
120114
end

0 commit comments

Comments
 (0)