Sha256: 2f3af519873b610800d4e0dbe37d73f4bce5cb3a66c0b2485904523862550d5d
Contents?: true
Size: 708 Bytes
Versions: 1
Compression:
Stored size: 708 Bytes
Contents
require "selenium_to_capybara/version" require 'selenium_to_capybara/base' require 'selenium_to_capybara/minitest' module SeleniumToCapybara def self.to_minitest(name, commands) test_commands = commands.map do |command| Minitest.new(command).translate end warning_present = test_commands.any? {|translation| translation.start_with?('# WARNING:')} output = [] output << <<~EOS test '#{name}' do #{test_commands.map {|x| " #{x.gsub(/\n/, "\n ")}"}.join("\n\n")} end EOS output << "\n# WARNING: Some commands are unhandled. Please contribute here: https://github.com/DarkSwoop/selenium_to_capybara" if warning_present output.join("\n") end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
selenium_to_capybara-0.1.4 | lib/selenium_to_capybara.rb |