Module: Capybara::Minitest::Expectations

Included in:
Node::Base, Node::Simple, Session
Defined in:
lib/capybara/minitest/spec.rb

Instance Method Summary collapse

Instance Method Details

#must_have_all_of_selectorsObject


# File 'lib/capybara/minitest/spec.rb', line 158

#must_have_ancestorObject


# File 'lib/capybara/minitest/spec.rb', line 8

#must_have_any_of_selectorsObject


# File 'lib/capybara/minitest/spec.rb', line 170

#must_have_buttonObject


# File 'lib/capybara/minitest/spec.rb', line 14

#must_have_checked_fieldObject


# File 'lib/capybara/minitest/spec.rb', line 26

#must_have_contentObject


# File 'lib/capybara/minitest/spec.rb', line 50

#must_have_cssObject


# File 'lib/capybara/minitest/spec.rb', line 62

#must_have_current_pathObject


# File 'lib/capybara/minitest/spec.rb', line 74

#must_have_fieldObject


# File 'lib/capybara/minitest/spec.rb', line 86


# File 'lib/capybara/minitest/spec.rb', line 98

#must_have_none_of_selectorsObject


# File 'lib/capybara/minitest/spec.rb', line 164

#must_have_selectObject


# File 'lib/capybara/minitest/spec.rb', line 134

#must_have_selectorObject


# File 'lib/capybara/minitest/spec.rb', line 146

#must_have_siblingObject


# File 'lib/capybara/minitest/spec.rb', line 176

#must_have_style(*args, &block) ⇒ Object

Deprecated.

246
247
248
249
# File 'lib/capybara/minitest/spec.rb', line 246

def must_have_style(*args, &block)
  warn 'must_have_style is deprecated, please use must_match_style'
  must_match_style(*args, &block)
end

#must_have_tableObject


# File 'lib/capybara/minitest/spec.rb', line 188

#must_have_textObject


# File 'lib/capybara/minitest/spec.rb', line 110

#must_have_titleObject


# File 'lib/capybara/minitest/spec.rb', line 122

#must_have_unchecked_fieldObject


# File 'lib/capybara/minitest/spec.rb', line 38

#must_have_xpathObject


# File 'lib/capybara/minitest/spec.rb', line 200

#must_match_styleObject


# File 'lib/capybara/minitest/spec.rb', line 182

#wont_have_buttonObject


# File 'lib/capybara/minitest/spec.rb', line 20

#wont_have_checked_fieldObject


# File 'lib/capybara/minitest/spec.rb', line 32

#wont_have_contentObject


# File 'lib/capybara/minitest/spec.rb', line 56

#wont_have_cssObject


# File 'lib/capybara/minitest/spec.rb', line 68

#wont_have_current_pathObject


# File 'lib/capybara/minitest/spec.rb', line 80

#wont_have_fieldObject


# File 'lib/capybara/minitest/spec.rb', line 92


# File 'lib/capybara/minitest/spec.rb', line 104

#wont_have_selectObject


# File 'lib/capybara/minitest/spec.rb', line 140

#wont_have_selectorObject


# File 'lib/capybara/minitest/spec.rb', line 152

#wont_have_tableObject


# File 'lib/capybara/minitest/spec.rb', line 194

#wont_have_textObject


# File 'lib/capybara/minitest/spec.rb', line 116

#wont_have_titleObject


# File 'lib/capybara/minitest/spec.rb', line 128

#wont_have_unchecked_fieldObject


# File 'lib/capybara/minitest/spec.rb', line 44

#wont_have_xpathObject


212
213
214
215
# File 'lib/capybara/minitest/spec.rb', line 212

%w[text content title current_path].each do |assertion|
  infect_an_assertion "assert_#{assertion}", "must_have_#{assertion}", :reverse
  infect_an_assertion "refute_#{assertion}", "wont_have_#{assertion}", :reverse
end