<!DOCTYPE html> <html lang="pt-br"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title> Paz Aricha &bull; The online home of Paz Aricha </title> <meta name="description" content="The online home of Paz Aricha"> <link rel="stylesheet" href="/css/main.css"> <link rel="canonical" href="http://pazaricha.com/"> <link rel="alternate" type="application/rss+xml" title="Paz Aricha" href="http://pazaricha.com/feed.xml" /> <script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-31386532-1']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); </script> <meta name="robots" content="noindex"> <!--===== Please remove it ! ! ! ======--> <meta name="googlebot" content="noindex"> <!--===== Please remove it ! ! ! ======--> </head> <body class="home"> <script> window.fbAsyncInit = function() { FB.init({ appId : '242753666065881', xfbml : true, version : 'v2.5' }); }; (function(d, s, id){ var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) {return;} js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_US/sdk.js"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk')); </script> <main class="main"> <header class="header"> <div class="overlay"> <div class="container"> <h1 class="title"> <a href="/">Paz Aricha</a> </h1> <nav class="navbar"> <a href="#" class="menu-icon"> <span></span> <span></span> <span></span> </a> <ul class="nav"> <li><a href="/about/">About</a></li> </ul> </nav> </div> <!-- <h2 class="txt-center"> Welcome to <strong>Paz Aricha</strong>! </h2> --> </div> </header> <div class="post-list"> <article class="post card container"> <header class="post-header"> <h1><a class="post-link" href="/difference-between-let-and-before-each/">Difference between "let" and "before each" in Rspec</a></h1> <span class="post-meta"> <!-- <time class="post-date" datetime="">Mar 10, 2016</time> --> <!-- <span class="post-author">by Paz Aricha</span> --> </span> </header> <div class="post-content"> Rspec is a great ruby library for writing tests (or “specs” as they are called in Rspec). It includes lots of great helper methods that can help you save time and write faster more performant tests. Often times when you’re writing a test you need to prepare some data or do some action before that test gets run. RSpec provides 2 main ways of achieving this: Via the let statement. Via the before :each statement. But what’s the difference between the two? In short, let blocks are “lazy” and only gets evaluated the first time they are called in your... <a href="/difference-between-let-and-before-each/" class="readmore">Read more &raquo;</a> </div> </article> <div class="container"> <nav class="pagination" role="pagination"> <ul> <li><span class="page-number">Page 1 of 1</span></li> </ul> </nav> </div> </div> <footer class="footer t-center"> <div class="container"> <div class="social-icons"> <ul class="text-left"> <li><a href="http://facebook.com/bluzgraphics" target="_blank"><i class="fa fa-facebook"></i></a></li> <li><a href="http://twitter.com/bluzthemes" target="_blank"><i class="fa fa-twitter"></i></a></li> <li><a href="https://github.com/pazaricha" target="_blank"><i class="fa fa-github"></i></a></li> <li><a href="http://dribbble.com/BluzThemes" target="_blank"><i class="fa fa-dribbble"></i></a></li> <li><a href="https://www.linkedin.com/in/pazaricha" target="_blank"><i class="fa fa-linkedin"></i></a></li> </ul> </div> <small>&copy; 2016 All rights reserved.</small> </div> </footer> </main> </body> </html></body></html>
<!--
// # Zetsu Jekyll theme - https://github.com/nandomoreriame/zetsu/
// by nandomoreira.me
-->
