Re: [rspec-users] overview of how rspec was designed

2012-05-15 Thread David Chelimsky
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

Re: [rspec-users] how can I do an "or" within the context of a matcher?

2012-05-15 Thread Justin Ko
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

Re: [rspec-users] how can I do an "or" within the context of a matcher?

2012-05-15 Thread Rodrigo Rosenfeld Rosas
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