<html><head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head><body bgcolor="#FFFFFF" text="#000000">I dislike Cucumber for the
 burden it imposes and also use RSpec/Capybara feature style tests. I'm 
not sure it's useful to split out every line to a method with 
given/when/then, you may as well just use Turnip. I extract out common 
steps to a library of methods, `visit_home_page`, `click_on_nav "Home"`,
 but will often leave in the actual code for the test I'm interested in.<br>
<br>
You might find it worthwhile to create RSpec matchers, so you can write:
 `expect(page).to have_flash_message("Thanks for joining.")` or 
`expect(page).to show_course(@course)`.<br>
<br>
Cheers,<br>
Andrew<br>
<blockquote style="border: 0px none;" 
cite="mid:CADpRVaRckOoXD9+nGDmx7ia8DrqcjD5iLFv+FCUi5uxRmqx3dg@mail.gmail.com"
 type="cite">
  <div style="margin:30px 25px 10px 25px;" class="__pbConvHr"><div 
style="display:table;width:100%;border-top:1px solid 
#EDEEF0;padding-top:5px">          <div 
style="display:table-cell;white-space:nowrap;vertical-align:middle;width:100%">
        <a moz-do-not-send="true" 
href="mailto:joel.chippindale@futurelearn.com" style="color:#737F92 
!important;padding-right:6px;font-weight:bold;text-decoration:none 
!important;">Joel Chippindale</a></div>   <div 
style="display:table-cell;white-space:nowrap;vertical-align:middle;">   
  <font color="#9FA2A5"><span style="padding-left:6px">25 July 2014 
10:26</span></font></div></div></div>
  <div style="color:#888888;margin-left:24px;margin-right:24px;" 
__pbrmquotes="true" class="__pbConvBody"><div dir="ltr">We recently 
blogged about how, at FutureLearn, we write readable feature tests with 
RSpec*, seeĀ <a moz-do-not-send="true" 
href="https://about.futurelearn.com/blog/how-we-write-readable-feature-tests-with-rspec/">https://about.futurelearn.com/blog/how-we-write-readable-feature-tests-with-rspec/</a>,
 and it made me wonder how common this approach was.<div>
<br></div><div>Are any of you using this approach already? If so, how 
are you finding it?</div><div><br></div><div>J.<br><div><br></div><div><br></div><div>*
 Hat tip to the developers at Econsultancy who introduced me to this way
 of using RSpec.</div>
</div></div>

<div>_______________________________________________<br>Chat mailing 
list<br><a class="moz-txt-link-abbreviated" href="mailto:Chat@lists.lrug.org">Chat@lists.lrug.org</a><br>Archives: 
<a class="moz-txt-link-freetext" href="http://lists.lrug.org/pipermail/chat-lrug.org">http://lists.lrug.org/pipermail/chat-lrug.org</a><br>Manage your 
subscription: <a class="moz-txt-link-freetext" href="http://lists.lrug.org/options.cgi/chat-lrug.org">http://lists.lrug.org/options.cgi/chat-lrug.org</a><br>List 
info: <a class="moz-txt-link-freetext" href="http://lists.lrug.org/listinfo.cgi/chat-lrug.org">http://lists.lrug.org/listinfo.cgi/chat-lrug.org</a><br></div></div>
</blockquote>
<br>
<div class="moz-signature">

<br>
</div>
</body></html>