On Mon, May 14, 2012 at 2:23 PM, S Ahmed wrote:
> Other than jumping into the codebase myself, I was wondering if anyone has
> done a high-level (or better yet low level) write-up on how rspec works
> under the covers?
The RSpec Book has a fairly deep discussion on the inner workings.
Other than
On May 15, 2012, at 12:47 AM, Patrick J. Collins wrote:
> Capybara has two methods:
>
> page.has_button?
>
> and
>
> page.has_link?
>
> ... I am wondering, how can I make a helper method that will be
> satisfied by one or the other? In other words, I want to be able to do:
>
> page.should
You're looking for Custom Matchers:
https://github.com/dchelimsky/rspec/wiki/Custom-Matchers
Em 15-05-2012 03:47, Patrick J. Collins escreveu:
Capybara has two methods:
page.has_button?
and
page.has_link?
... I am wondering, how can I make a helper method that will be
satisfied by one or t