Module: Capybara::Minitest::Assertions

Defined in:
lib/capybara/minitest.rb

Instance Method Summary collapse

Instance Method Details

#assert_ancestorObject


99
100
101
102
103
104
105
106
107
108
109
110
111
112
# File 'lib/capybara/minitest.rb', line 99

%w[selector no_selector matches_style
   all_of_selectors none_of_selectors any_of_selectors
   matches_selector not_matches_selector
   sibling no_sibling ancestor no_ancestor].each do |assertion_name|
  class_eval "def assert_\#{assertion_name} *args, &optional_filter_block\nself.assertions +=1\nsubject, args = determine_subject(args)\nsubject.assert_\#{assertion_name}(*args, &optional_filter_block)\nrescue Capybara::ExpectationNotMet => e\nraise ::Minitest::Assertion, e.message\nend\n", __FILE__, __LINE__ + 1
end

#assert_buttonObject


# File 'lib/capybara/minitest.rb', line 201


#assert_checked_fieldObject


# File 'lib/capybara/minitest.rb', line 227


#assert_cssObject


# File 'lib/capybara/minitest.rb', line 175


#assert_current_pathObject


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


#assert_fieldObject


# File 'lib/capybara/minitest.rb', line 214



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


#assert_matches_selectorObject


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


#assert_matches_styleObject


# File 'lib/capybara/minitest.rb', line 84


#assert_no_buttonObject


# File 'lib/capybara/minitest.rb', line 207


#assert_no_checked_fieldObject

Assertion that there is no checked_field


# File 'lib/capybara/minitest.rb', line 233


#assert_no_cssObject


# File 'lib/capybara/minitest.rb', line 181


#assert_no_current_pathObject Also known as: refute_current_path


45
46
47
48
49
50
51
52
53
54
55
# File 'lib/capybara/minitest.rb', line 45

%w[text no_text title no_title current_path no_current_path].each do |assertion_name|
  class_eval "def assert_\#{assertion_name} *args\nself.assertions +=1\nsubject, args = determine_subject(args)\nsubject.assert_\#{assertion_name}(*args)\nrescue Capybara::ExpectationNotMet => e\nraise ::Minitest::Assertion, e.message\nend\n", __FILE__, __LINE__ + 1
end

#assert_no_fieldObject


# File 'lib/capybara/minitest.rb', line 220


Assertion that there is no link


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


#assert_no_selectObject


# File 'lib/capybara/minitest.rb', line 257


#assert_no_selectorObject Also known as: refute_selector


# File 'lib/capybara/minitest.rb', line 69


#assert_no_textObject Also known as: refute_text


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


#assert_no_titleObject Also known as: refute_title


# File 'lib/capybara/minitest.rb', line 25


#assert_no_unchecked_fieldObject

Assertion that there is no unchecked_field


# File 'lib/capybara/minitest.rb', line 245


#assert_no_xpathObject


# File 'lib/capybara/minitest.rb', line 168


#assert_selectObject


# File 'lib/capybara/minitest.rb', line 251


#assert_selectorObject


# File 'lib/capybara/minitest.rb', line 64


#assert_siblingObject


# File 'lib/capybara/minitest.rb', line 89


#assert_tableObject


# File 'lib/capybara/minitest.rb', line 264


#assert_textObject Also known as: assert_content


# File 'lib/capybara/minitest.rb', line 9


#assert_titleObject


# File 'lib/capybara/minitest.rb', line 19


#assert_unchecked_fieldObject


# File 'lib/capybara/minitest.rb', line 239


#assert_xpathObject


# File 'lib/capybara/minitest.rb', line 79


#refute_buttonObject

Assertion that there is no button


# File 'lib/capybara/minitest.rb', line 207


#refute_checked_fieldObject

Assertion that there is no checked_field


# File 'lib/capybara/minitest.rb', line 233


#refute_cssObject

Assertion that there is no css


# File 'lib/capybara/minitest.rb', line 181


#refute_fieldObject

Assertion that there is no field


# File 'lib/capybara/minitest.rb', line 220



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


#refute_selectObject

Assertion that there is no select


# File 'lib/capybara/minitest.rb', line 257


#refute_unchecked_fieldObject

Assertion that there is no unchecked_field


# File 'lib/capybara/minitest.rb', line 245


#refute_xpathObject

Assertion that there is no xpath


# File 'lib/capybara/minitest.rb', line 168