In the first article, How to use rspec to test GroupDocs API. Part 1, we created first test for GroupDocs API. This article describes in details how tests works, what expectation and matchers are, and how to test an API with the PULL method.
Expectation and Matchers So what are expectation and matchers? Lets look at a small example:
string ="GroupDocs" string.should have(9).Characters string.should\_not have(5).Characters Expectations are defined by should and the negative form should_not....characters string.should\_not have(5).characters Expectations...defined by have(9).characters and have(5).characters. I should also...