[rspec-users] Phlip's be_html_with was RE: Problem with Custom matcher and Blocks
Phlip
phlip2005 at gmail.com
Sun Apr 5 00:08:53 EDT 2009
Brandon Olivares wrote:
> I'd appreciate it if you could let me know about the be_html_with issue when
> you can though, as I like the natural language better.
Add this monkey patch below require 'assert2/xhtml':
class BeHtmlWith
def matches?(stwing, &block)
@block ||= block
@scope.wrap_expectation self do
@doc = Nokogiri::HTML(stwing)
return run_all_xpaths(build_xpaths)
end
end
end
Now, I'm off to finish manual tests of the new assert_rjs, and to pop a new
version...
More information about the rspec-users
mailing list