Module: Capybara::Minitest::Assertions

Defined in:
lib/capybara/minitest.rb

Instance Method Summary collapse

Instance Method Details

#assert_buttonObject



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


#assert_checked_fieldObject



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


#assert_cssObject

see Capybara::Node::Matchers#has_css?



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


#assert_current_pathObject



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


#assert_fieldObject



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




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


#assert_matches_selectorObject



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


#assert_no_buttonObject



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


#assert_no_checked_fieldObject

Assertion that there is no checked_field



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


#assert_no_cssObject

see Capybara::Node::Matchers#has_no_css?



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


#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 207


Assertion that there is no link

see Node::Matchers#has_no_link?



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


#assert_no_selectObject



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


#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 232


#assert_no_xpathObject

see Capybara::Node::Matchers#has_no_xpath?



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


#assert_selectObject



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


#assert_selectorObject



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


#assert_styleObject



89
90
91
92
93
94
95
96
97
98
99
100
101
# File 'lib/capybara/minitest.rb', line 89

%w[selector no_selector style
   all_of_selectors none_of_selectors any_of_selectors
   matches_selector not_matches_selector].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_tableObject



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


#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 226


#assert_xpathObject

see Capybara::Node::Matchers#has_xpath?



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


#refute_buttonObject

Assertion that there is no button



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


#refute_checked_fieldObject

Assertion that there is no checked_field



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


#refute_cssObject

Assertion that there is no css



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


#refute_fieldObject

Assertion that there is no field



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


Assertion that there is no link

see Node::Matchers#has_no_link?



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


#refute_selectObject

Assertion that there is no select



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


#refute_unchecked_fieldObject

Assertion that there is no unchecked_field



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


#refute_xpathObject

Assertion that there is no xpath



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