In this pull request, I added the concept of views to Bastion to reduce the problems with using bind(). Now, bind() will work better because Bastion will attempt to extract as many views of the same response as possible. All these views will be available for binding to a model.
Also, all the extracted views will be available using getView() after the call() method during a test.
Related issue: #44.
In this pull request, I added the concept of views to Bastion to reduce the problems with using
bind()
. Now,bind()
will work better because Bastion will attempt to extract as many views of the same response as possible. All these views will be available for binding to a model.Also, all the extracted views will be available using
getView()
after thecall()
method during a test.