<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Jul 14, 2014 at 11:28 AM, jagori samajdar <span dir="ltr"><<a href="mailto:jagori79@gmail.com" target="_blank">jagori79@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div>As part of my task wherein am converting the should syntax to expect,am bit confused with the <i>be_visible</i> matcher or whatever it is.<br>

</div></div></blockquote><div><br></div><div>For those of you that are not familiar with the bug, it is 66369[1].</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<div dir="ltr"><div><div>I couldn't see it anywhere in the RSpec's default built in matcher list.</div>
</div><div><a href="https://github.com/rspec/rspec-expectations" target="_blank">https://github.com/rspec/rspec-expectations</a><br></div><div><br></div><div>Can anyone help me understand the same as in the pasted code defined in options_steps.rb:</div>


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

<br></div><div>In this case, you have to convert</div><div><br></div><div>on(VisualEditorPage).options_page_title_element.when_present.should be_visible<br></div><div><br></div><div>to</div><div><br></div>expect((VisualEditorPage).options_page_title_element.when_present).to be_visible<br>

<div><br></div><div>Let me know if you are still confused, or if you need more documentation. If anybody can point to better documentation than I have provided in the last e-mail message, please do.</div><div><br></div><div>

Željko</div><div>--</div><div><a href="https://bugzilla.wikimedia.org/show_bug.cgi?id=66369">https://bugzilla.wikimedia.org/show_bug.cgi?id=66369</a> </div></div></div></div>