[rspec-users] .size.should === (4..5)

aidy lewis aidy.lewis at googlemail.com
Wed Apr 28 13:53:56 EDT 2010


	Hi,

	I would like to test whether an array size is either of two integer obejects

	mark_up_parser.sorted_xml.size.should === (4..5)

	However I am recieiving an exception of:

	expected: 4..5,
	got: 4 (using ===)

	Do I need to write a custom matcher?
	
	Thanks
	
	Aidy


More information about the rspec-users mailing list