Method: Waw::WSpec::DSL#i_dont_reach

Defined in:
lib/waw/wspec/dsl.rb

#i_dont_reach(which_page) ⇒ Object

Asserts that a page cannot be reached, leading to a Net::HTTPNotFound or a Net::HTTPForbidden (403) result



125
126
127
128
# File 'lib/waw/wspec/dsl.rb', line 125

def i_dont_reach(which_page)
  result = go(which_page)
  assert (Net::HTTPNotFound===result or Net::HTTPForbidden===result), __last_because + " (can reach #{which_page}: #{result})"
end