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

Version Path
cornucopia-0.1.56 lib/cornucopia/capybara/install_extensions.rb
cornucopia-0.1.55 lib/cornucopia/capybara/install_extensions.rb
cornucopia-0.1.54 lib/cornucopia/capybara/install_extensions.rb
cornucopia-0.1.53 lib/cornucopia/capybara/install_extensions.rb
cornucopia-0.1.52 lib/cornucopia/capybara/install_extensions.rb
cornucopia-0.1.51 lib/cornucopia/capybara/install_extensions.rb
cornucopia-0.1.50 lib/cornucopia/capybara/install_extensions.rb
cornucopia-0.1.49 lib/cornucopia/capybara/install_extensions.rb
cornucopia-0.1.48 lib/cornucopia/capybara/install_extensions.rb
cornucopia-0.1.47 lib/cornucopia/capybara/install_extensions.rb
cornucopia-0.1.46 lib/cornucopia/capybara/install_extensions.rb
cornucopia-0.1.45 lib/cornucopia/capybara/install_extensions.rb
cornucopia-0.1.44 lib/cornucopia/capybara/install_extensions.rb
cornucopia-0.1.43 lib/cornucopia/capybara/install_extensions.rb
cornucopia-0.1.42 lib/cornucopia/capybara/install_extensions.rb
cornucopia-0.1.41 lib/cornucopia/capybara/install_extensions.rb