Sha256: 2c37597b4c65953a9ce50c431f01e0ef35fc5a2084ff50dd4a1542cba6b9042c
Contents?: true
Size: 1.89 KB
Versions: 16
Compression:
Stored size: 1.89 KB
Contents
# frozen_string_literal: true if Object.const_defined?("Capybara") && Capybara.const_defined?("Node") && Capybara::Node.const_defined?("Document") unless Capybara::Node::Document.included_modules.include?(Cornucopia::Capybara::FinderExtensions) Capybara::Node::Document.include Cornucopia::Capybara::FinderExtensions end unless Capybara::Node::Document.included_modules.include?(Cornucopia::Capybara::MatcherExtensions) Capybara::Node::Document.include Cornucopia::Capybara::MatcherExtensions end end if Object.const_defined?("Capybara") && Capybara.const_defined?("Node") && Capybara::Node.const_defined?("Simple") unless Capybara::Node::Simple.included_modules.include?(Cornucopia::Capybara::FinderExtensions) Capybara::Node::Simple.include Cornucopia::Capybara::FinderExtensions end unless Capybara::Node::Simple.included_modules.include?(Cornucopia::Capybara::MatcherExtensions) Capybara::Node::Simple.include Cornucopia::Capybara::MatcherExtensions end end if Object.const_defined?("Capybara") && Capybara.const_defined?("Node") && Capybara::Node.const_defined?("Element") unless Capybara::Node::Element.included_modules.include?(Cornucopia::Capybara::FinderExtensions) Capybara::Node::Element.include Cornucopia::Capybara::FinderExtensions end unless Capybara::Node::Element.included_modules.include?(Cornucopia::Capybara::MatcherExtensions) Capybara::Node::Element.include Cornucopia::Capybara::MatcherExtensions end unless Capybara::Node::Element.included_modules.include?(Cornucopia::Capybara::SelectableValues) Capybara::Node::Element.include Cornucopia::Capybara::SelectableValues end end if Object.const_defined?("Capybara") && Capybara.const_defined?("Session") unless Capybara::Session.included_modules.include?(Cornucopia::Capybara::Synchronizable) Capybara::Session.include Cornucopia::Capybara::Synchronizable end end
Version data entries
16 entries across 16 versions & 1 rubygems