Method: Testable::Pages::Attribute#url_is

Defined in:
lib/testable/attribute.rb

#url_is(url = nil) ⇒ Object

This is an attribute that can be specified on a model, such as a page object. When this attribute is provided, the model will have a URL that can be navigated to automatically by Testable.



11
12
13
14
15
# File 'lib/testable/attribute.rb', line 11

def url_is(url = nil)
  url_is_empty if url.nil? && url_attribute.nil?
  url_is_empty if url.nil? || url.empty?
  @url = url
end