module SunspotMatchersTestunit
Constants
- VERSION
Public Instance Methods
assert_has_no_search_params(session, *method_and_args)
click to toggle source
# File lib/sunspot_matchers_testunit/matchers.rb, line 162 def assert_has_no_search_params(session, *method_and_args) method, *args = method_and_args matcher = HaveSearchParams.new(session, method, *args).get_matcher assert !matcher.match?, matcher.unexpected_match_error_message end
assert_has_search_params(session, *method_and_args)
click to toggle source
# File lib/sunspot_matchers_testunit/matchers.rb, line 156 def assert_has_search_params(session, *method_and_args) method, *args = method_and_args matcher = HaveSearchParams.new(session, method, *args).get_matcher assert matcher.match?, matcher.missing_param_error_message end
assert_is_not_search_for(session, expected_class)
click to toggle source
# File lib/sunspot_matchers_testunit/matchers.rb, line 309 def assert_is_not_search_for(session, expected_class) matcher = BeASearchFor.new(session, expected_class) assert !matcher.match?, matcher.failure_message_for_should_not end
assert_is_search_for(session, expected_class)
click to toggle source
# File lib/sunspot_matchers_testunit/matchers.rb, line 304 def assert_is_search_for(session, expected_class) matcher = BeASearchFor.new(session, expected_class) assert matcher.match?, matcher.failure_message_for_should end