First cases working.
Spec to make sure that it doesn't find the smaller image even when they both have similar pixel colors.
Faild spec trying to find the smal image in a different position.
Lets take a step back and try with unidimensional cases.
Little refactoring: added Pixel class.
Consider the neighbor pixel. Passing all tests.
Added one more failing test case.
Refactored neighbot to receive a number, and refactored #pixels_match? to compare other cols. Now specs pass.
Refactored the hard-code in #pixels_match?
Refactoring: modeling a couple of pixels for comparison.
Refactoring: Improving couple class.
Refactoring: Renaming method
Spacing and naming adjustments on spec.
Refactoring: better separation of reponsabilities. First find a couple of pixels by color, and then try to match the patern.
Refactoring: better separation of reponsabilities. First find a couple of pixels by color, and then try to match the patern.
Refactoring: got rid of some redundant argument passing.
Changing the criteria for returning true.
Added comments and deleted blank lines.
A bit of organization.
Fixed typo.