Sha256: 7b794766c0093cf16ecf9d360790d92eb22eb07e27af8aab90b3e6cf9dbaddfe
Contents?: true
Size: 434 Bytes
Versions: 3
Compression:
Stored size: 434 Bytes
Contents
require 'capybara' module Howitzer module Capybara module DslEx include ::Capybara::DSL # It flattens arguments of all DSL methods to support locator store DSL ::Capybara::Session::DSL_METHODS.each do |method| define_method method do |*args, &block| super(*args.map{|el| args.first == el && el.respond_to?(:flatten) ? el.flatten : el}.flatten, &block) end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
howitzer-1.1.1 | lib/howitzer/capybara/dsl_ex.rb |
howitzer-1.1.0 | lib/howitzer/capybara/dsl_ex.rb |
howitzer-1.0.2 | lib/howitzer/capybara/dsl_ex.rb |