Module: ElabsMatchers::Matchers::HaveFields
- Defined in:
- lib/elabs_matchers/matchers/have_fields.rb
Defined Under Namespace
Classes: HaveFieldsMatcher
Instance Method Summary (collapse)
-
- (Object) have_fields(fields)
Asserts if the supplied fields exists or not.
Instance Method Details
- (Object) have_fields(fields)
Asserts if the supplied fields exists or not
Example: page.should have_fields("Author" => "Adam", "Year" => "2011")
40 41 42 |
# File 'lib/elabs_matchers/matchers/have_fields.rb', line 40 def have_fields(fields) HaveFieldsMatcher.new(fields) end |