lib/utensils/custom_matchers.rb in utensils-0.0.1 vs lib/utensils/custom_matchers.rb in utensils-0.0.2

- old
+ new

@@ -21,32 +21,9 @@ def have_model(model) HaveModel.new(model) end - class HaveNoModel - def initialize(model) - @model_id = ApplicationController.helpers.dom_id(model) - end - - def matches?(page) - @page = page - @page.has_no_css?("##{@model_id}") - end - - def failure_message_for_should - "expected #{@page.body} to not contain element with id: #{@model_id}" - end - - def failure_message_for_should_not - "expected #{@page.body} to contain element with id: #{@model_id}" - end - end - - def have_no_model(model) - HaveNoModel.new(model) - end - class HaveClass def initialize(class_name) @class_name = class_name end