[QA] Reg::RSpec matchers

jagori samajdar jagori79 at gmail.com
Mon Jul 14 09:28:33 UTC 2014


Hi,

As part of my task wherein am converting the should syntax to expect,am bit
confused with the *be_visible* matcher or whatever it is.

I couldn't see it anywhere in the RSpec's default built in matcher list.
https://github.com/rspec/rspec-expectations

Can anyone help me understand the same as in the pasted code defined in
options_steps.rb:

Then(/^I should see the options overlay$/) do
  on(VisualEditorPage).options_page_title_element.when_present.should
be_visible
end


Regards ,
Jagori
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wikimedia.org/pipermail/qa/attachments/20140714/4ebd2bf4/attachment.html>


More information about the QA mailing list