Skip to content

Commit

Permalink
remove block handling in visit method
Browse files Browse the repository at this point in the history
  • Loading branch information
yunlei committed May 9, 2015
1 parent e854bad commit 5ee00fd
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/ae_page_objects/concerns/visitable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ def ensure_loaded!

module VisitMethod
def visit(*args)
raise ArgumentError, "Cannot pass block to visit()" if block_given?

full_path = site.generate_path(paths.first, *args)
raise PathNotResolvable, "#{self.name} not visitable via #{paths.first}(#{args.inspect})" unless full_path

Expand Down

0 comments on commit 5ee00fd

Please sign in to comment.