[rspec-users] overview of how rspec was designed

2012-05-14 Thread S Ahmed
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? ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listin

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

2012-05-14 Thread Patrick J. Collins
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 have_link_or_button("blah") def have_link_or_button(locator) have_link(locator)