lib/mache/page.rb in mache-2.1.1 vs lib/mache/page.rb in mache-3.0.0
- old
+ new
@@ -1,7 +1,7 @@
-require "capybara"
-require "mache/node"
+require 'capybara'
+require 'mache/node'
module Mache
# The {Page} class wraps an HTML page with an application-specific API. You
# can extend it to define your own API for manipulating the pages of your web
# application.
@@ -36,11 +36,11 @@
@path ||= path
end
# Visits the page at its {#path}.
#
- # @return [Page] the page object
+ # @return [Page] a page object
def visit
@node.visit(path)
self
end
@@ -51,10 +51,10 @@
@node.current_path == path
end
# Creates a new page object and calls {#visit} on it.
#
- # @return [Page] the page object
+ # @return [Page] a page object
def self.visit
new.visit
end
end
end