Sha256: 98b9168325effbcb456e90e05b29a0d9642e77cdb12c9d24eb932e2ae8e6bdc4
Contents?: true
Size: 377 Bytes
Versions: 5
Compression:
Stored size: 377 Bytes
Contents
Given /^(?:|I *) upload the spec file "([^"]*)" as "([^"]*)"$/ do |path, field| icon = page.find('#icon_file_upload') icon.click path = Rails.root.join('spec', 'attachments', path) attach_file(field, File.expand_path(path)) if page.driver.respond_to? :console_messages error_msgs = page.driver.console_messages Rails.logger.info error_msgs.inspect end end
Version data entries
5 entries across 5 versions & 1 rubygems