Wednesday, 2 July 2014

RSpec::Matchers

RSpec::Matchers#methods:
a_block_changing a_falsy_value an_instance_of be_between covering including start_with
a_block_outputting a_hash_including an_object_eq_to be_falsey end_with match starting_with
a_block_raising a_kind_of an_object_eql_to be_falsy ending_with match_array throw_symbol
a_block_throwing a_nil_value an_object_equal_to be_instance_of eq match_regex throwing
a_block_yielding_control a_range_covering an_object_existing be_kind_of eq_to matching within
a_block_yielding_successive_args a_string_ending_with an_object_matching be_nil eql output yield_control
a_block_yielding_with_args a_string_including an_object_responding_to be_truthy eql_to raise_error yield_successive_args
a_block_yielding_with_no_args a_string_matching an_object_satisfying be_within equal raise_exception yield_with_args
a_collection_containing_exactly a_string_starting_with be change equal_to raising yield_with_no_args
a_collection_ending_with a_truthy_value be_a changing exist respond_to yielding_control
a_collection_including a_value be_a_kind_of contain_exactly existing responding_to yielding_successive_args
a_collection_starting_with a_value_between be_an containing_exactly expect satisfy yielding_with_args
a_falsey_value a_value_within be_an_instance_of cover include satisfying yielding_with_no_args
view raw gistfile1.rb hosted with ❤ by GitHub

No comments:

Post a Comment