module Symbiont::Assertion

Public Instance Methods

asserted_title() click to toggle source
# File lib/symbiont/assertions.rb, line 29
def asserted_title
  @title
end
asserted_url() click to toggle source
# File lib/symbiont/assertions.rb, line 21
def asserted_url
  @url
end
title_is(title = nil) click to toggle source
# File lib/symbiont/assertions.rb, line 16
def title_is(title = nil)
  title_is_empty if title.nil? || title.empty?
  @title = title
end
url_is(url = nil) click to toggle source
# File lib/symbiont/assertions.rb, line 5
def url_is(url = nil)
  url_is_empty if url.nil? || url.empty?
  @url = url
end
url_match() click to toggle source
# File lib/symbiont/assertions.rb, line 25
def url_match
  @url_match
end
url_matches(pattern = nil) click to toggle source
# File lib/symbiont/assertions.rb, line 10
def url_matches(pattern = nil)
  url_match_is_empty if pattern.nil?
  url_match_is_empty if pattern.is_a?(String) && pattern.empty?
  @url_match = pattern
end