Permalink
Browse files

Added all social connections

  • Loading branch information...
1 parent 3a03335 commit c75a5205fdd4eecbac91bba99263201647517317 @andreareginato andreareginato committed Oct 2, 2012
Showing with 133 additions and 14 deletions.
  1. +6 −6 README.md
  2. +1 −1 assets/stylesheets/application.css
  3. +113 −6 content/index.html
  4. +13 −1 layouts/default.html
View
@@ -1,6 +1,6 @@
# betterspecs.org
-* [Betterspecs website](http://betterspecs.org)
+Source code for [betterspecs.org](http://betterspecs.org)
## Requirements
@@ -9,14 +9,14 @@ RSpec Best Practices website is tested against MRI 1.9.3.
## Installation
- git clone git@github.com:andreareginato/betterspecs.git
- cd betterspecs
- bundle install
- nanoc3 aco
+ git clone git@github.com:andreareginato/betterspecs.git
+ cd betterspecs
+ bundle install
+ nanoc3 aco
## Resources
-* [Betterspecs website](http://betterspecs.org)
+[betterspecs.org](http://betterspecs.org)
## Contributing
@@ -82,5 +82,5 @@ article.comments {margin-top: 60px; padding-top: 10px; border-top: solid 1px; bo
#section aside.menu ul.media-grid {list-style-type: none;}
aside.menu {position:fixed !important; margin-left:270px;}
-article ol, article ul{list-style:none;text-align:left;margin:5px 0px 5px -20px;font-size:15px;text-shadow:0 1px 0 #fff;color:#62696f}
+article ol{list-style:none;text-align:left;margin:5px 0px 5px -20px;font-size:15px;text-shadow:0 1px 0 #fff;color:#62696f}
article li{margin:10px 0}
View
@@ -29,7 +29,20 @@
<article>
-<h1><a name="introduction">Introduction</a></h1>
+<iframe src="http://ghbtns.com/github-btn.html?user=andreareginato&repo=betterspecs&type=watch&count=true&size=large"
+ allowtransparency="true" frameborder="0" scrolling="0" width="170px" height="30px"></iframe>
+
+<iframe src="http://ghbtns.com/github-btn.html?user=andreareginato&repo=betterspecs&type=fork&count=true&size=large"
+ allowtransparency="true" frameborder="0" scrolling="0" width="170px" height="30px"></iframe>
+
+<iframe src="http://ghbtns.com/github-btn.html?user=andreareginato&repo=betterspecs&type=follow&count=true&size=large"
+ allowtransparency="true" frameborder="0" scrolling="0" width="300px" height="30px"></iframe>
+
+</article>
+
+</br>
+
+<article>
<p>
<a href="https://www.relishapp.com/rspec/">RSpec</a> is a great tool in the behavior
@@ -76,6 +89,10 @@
</code></pre>
</div>
+<a href="https://twitter.com/share" data-text="rspec best practices | how to describe your methods #betterspecs #describe" data-url="http://betterspecs.org/#describe" class="twitter-share-button" data-related="jasoncosta" data-lang="en" data-size="medium" data-counturl="http://betterspecs.org" data-count="vertical">Tweet</a>
+<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="https://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
+<div class="fb-like" data-href="http://betterspecs.org/#describe" data-send="false" data-layout="box_count" data-width="450" data-show-faces="true"></div>
+
</article>
<article>
@@ -116,6 +133,10 @@
<code>when</code> and <code>with</code>.
</p>
+<a href="https://twitter.com/share" data-text="rspec best practices | use contexts #betterspecs" data-url="http://betterspecs.org/#contexts" class="twitter-share-button" data-related="jasoncosta" data-lang="en" data-size="medium" data-counturl="http://betterspecs.org" data-count="vertical">Tweet</a>
+<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="https://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
+<div class="fb-like" data-href="http://betterspecs.org/#contexts" data-send="false" data-layout="box_count" data-width="450" data-show-faces="true"></div>
+
</article>
<article>
@@ -156,6 +177,10 @@
</code></pre>
</div>
+<a href="https://twitter.com/share" data-text="rspec best practices | use contexts #betterspecs" href="https://twitter.com/share" data-url="http://betterspecs.org/#contexts" class="twitter-share-button" data-related="jasoncosta" data-lang="en" data-size="medium" data-counturl="http://betterspecs.org" data-count="vertical">Tweet</a>
+<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="https://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
+<div class="fb-like" data-href="http://betterspecs.org/#contexts" data-send="false" data-layout="box_count" data-width="450" data-show-faces="true"></div>
+
</article>
<article>
@@ -190,6 +215,10 @@
Note that single expectation test does not mean single line test.
</p>
+<a href="https://twitter.com/share" data-text="rspec best practices | single expectation test #betterspecs" href="https://twitter.com/share" data-url="http://betterspecs.org/#single" class="twitter-share-button" data-related="jasoncosta" data-lang="en" data-size="medium" data-counturl="http://betterspecs.org" data-count="vertical">Tweet</a>
+<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="https://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
+<div class="fb-like" data-href="http://betterspecs.org/#single" data-send="false" data-layout="box_count" data-width="450" data-show-faces="true"></div>
+
</article>
<article>
@@ -248,6 +277,10 @@
</code></pre>
</div>
+<a href="https://twitter.com/share" data-text="rspec best practices | test all possible cases #betterspecs" href="https://twitter.com/share" data-url="http://betterspecs.org/#all" class="twitter-share-button" data-related="jasoncosta" data-lang="en" data-size="medium" data-counturl="http://betterspecs.org" data-count="vertical">Tweet</a>
+<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="https://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
+<div class="fb-like" data-href="http://betterspecs.org/#all" data-send="false" data-layout="box_count" data-width="450" data-show-faces="true"></div>
+
</article>
<article>
@@ -291,6 +324,10 @@
</code></pre>
</div>
+<a href="https://twitter.com/share" data-text="rspec best practices | use subject #betterspecs" href="https://twitter.com/share" data-url="http://betterspecs.org/#subject" class="twitter-share-button" data-related="jasoncosta" data-lang="en" data-size="medium" data-counturl="http://betterspecs.org" data-count="vertical">Tweet</a>
+<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="https://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
+<div class="fb-like" data-href="http://betterspecs.org/#subject" data-send="false" data-layout="box_count" data-width="450" data-show-faces="true"></div>
+
</article>
<article>
@@ -354,6 +391,10 @@
This can be useful to populate your database to test queries or scopes.
</p>
+<a href="https://twitter.com/share" data-text="rspec best practices | use let and let! #betterspecs" href="https://twitter.com/share" data-url="http://betterspecs.org/#let" class="twitter-share-button" data-related="jasoncosta" data-lang="en" data-size="medium" data-counturl="http://betterspecs.org" data-count="vertical">Tweet</a>
+<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="https://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
+<div class="fb-like" data-href="http://betterspecs.org/#let" data-send="false" data-layout="box_count" data-width="450" data-show-faces="true"></div>
+
</article>
<article>
@@ -384,6 +425,10 @@
<a href="#guard" class="see">automatic tests with guard</a>).
</p>
+<a href="https://twitter.com/share" data-text="rspec best practices | mock or not to mock #betterspecs" href="https://twitter.com/share" data-url="http://betterspecs.org/#mock" class="twitter-share-button" data-related="jasoncosta" data-lang="en" data-size="medium" data-counturl="http://betterspecs.org" data-count="vertical">Tweet</a>
+<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="https://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
+<div class="fb-like" data-href="http://betterspecs.org/#mock" data-send="false" data-layout="box_count" data-width="450" data-show-faces="true"></div>
+
</article>
<article>
@@ -408,6 +453,10 @@
</code></pre>
</div>
+<a href="https://twitter.com/share" data-text="rspec best practices | create only tha data you need #betterspecs" href="https://twitter.com/share" data-url="http://betterspecs.org/#data" class="twitter-share-button" data-related="jasoncosta" data-lang="en" data-size="medium" data-counturl="http://betterspecs.org" data-count="vertical">Tweet</a>
+<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="https://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
+<div class="fb-like" data-href="http://betterspecs.org/#data" data-send="false" data-layout="box_count" data-width="450" data-show-faces="true"></div>
+
</article>
<article>
@@ -440,6 +489,10 @@
</code></pre>
</div>
+<a href="https://twitter.com/share" data-text="rspec best practices | use factories and not fixtures #betterspecs" href="https://twitter.com/share" data-url="http://betterspecs.org/#factories" class="twitter-share-button" data-related="jasoncosta" data-lang="en" data-size="medium" data-counturl="http://betterspecs.org" data-count="vertical">Tweet</a>
+<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="https://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
+<div class="fb-like" data-href="http://betterspecs.org/#factories" data-send="false" data-layout="box_count" data-width="450" data-show-faces="true"></div>
+
</article>
<article>
@@ -466,6 +519,10 @@
</code></pre>
</div>
+<a href="https://twitter.com/share" data-text="rspec best practices | easy to read matcher #betterspecs" href="https://twitter.com/share" data-url="http://betterspecs.org/#matchers" class="twitter-share-button" data-related="jasoncosta" data-lang="en" data-size="medium" data-counturl="http://betterspecs.org" data-count="vertical">Tweet</a>
+<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="https://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
+<div class="fb-like" data-href="http://betterspecs.org/#matchers" data-send="false" data-layout="box_count" data-width="450" data-show-faces="true"></div>
+
</article>
<article>
@@ -529,6 +586,10 @@
different from each other they (usually) do not share much logic.
</p>
+<a href="https://twitter.com/share" data-text="rspec best practices | shared examples #betterspecs" href="https://twitter.com/share" data-url="http://betterspecs.org/#sharedexamples" class="twitter-share-button" data-related="jasoncosta" data-lang="en" data-size="medium" data-counturl="http://betterspecs.org" data-count="vertical">Tweet</a>
+<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="https://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
+<div class="fb-like" data-href="http://betterspecs.org/#sharedexamples" data-send="false" data-layout="box_count" data-width="450" data-show-faces="true"></div>
+
</article>
<article>
@@ -561,11 +622,15 @@
only the specs you need to test blazing fast without stopping your flow.
</p>
+<a href="https://twitter.com/share" data-text="rspec best practices | test what you see #betterspecs" href="https://twitter.com/share" data-url="http://betterspecs.org/#integration" class="twitter-share-button" data-related="jasoncosta" data-lang="en" data-size="medium" data-counturl="http://betterspecs.org" data-count="vertical">Tweet</a>
+<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="https://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
+<div class="fb-like" data-href="http://betterspecs.org/#integration" data-send="false" data-layout="box_count" data-width="450" data-show-faces="true"></div>
+
</article>
<article>
-<h1><a name="should">Do not use should</a></h1>
+<h1><a name="should">Don't use should</a></h1>
<p>
Do not use should when describing your tests. Use the third person in the present tense.
@@ -589,6 +654,10 @@
</code></pre>
</div>
+<a href="https://twitter.com/share" data-text="rspec best practices | don't use should #betterspecs" href="https://twitter.com/share" data-url="http://betterspecs.org/#should" class="twitter-share-button" data-related="jasoncosta" data-lang="en" data-size="medium" data-counturl="http://betterspecs.org" data-count="vertical">Tweet</a>
+<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="https://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
+<div class="fb-like" data-href="http://betterspecs.org/#should" data-send="false" data-layout="box_count" data-width="450" data-show-faces="true"></div>
+
</article>
<article>
@@ -636,6 +705,10 @@
</code></pre>
</div>
+<a href="https://twitter.com/share" data-text="rspec best practices | automatic tests with guard #betterspecs" href="https://twitter.com/share" data-url="http://betterspecs.org/#guard" class="twitter-share-button" data-related="jasoncosta" data-lang="en" data-size="medium" data-counturl="http://betterspecs.org" data-count="vertical">Tweet</a>
+<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="https://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
+<div class="fb-like" data-href="http://betterspecs.org/#guard" data-send="false" data-layout="box_count" data-width="450" data-show-faces="true"></div>
+
</article>
<article>
@@ -663,11 +736,16 @@
</div>
<p>
-Here you can find a "spec helper" and a "Guardfile" confuguration. With this configuration
+Here you can find a <a class="see" href="https://gist.github.com/3821012">spec helper</a> and a
+<aclass="see" href="https://gist.github.com/3821031">Guardfile</a> confuguration. With this configuration
you will reload the whole app if a preloaded file (like initializers) change and you will run
-the single tests really fast.
+the single tests really, really fast.
</p>
+<a href="https://twitter.com/share" data-text="rspec best practices | faster tests with spork #betterspecs" href="https://twitter.com/share" data-url="http://betterspecs.org/#spork" class="twitter-share-button" data-related="jasoncosta" data-lang="en" data-size="medium" data-counturl="http://betterspecs.org" data-count="vertical">Tweet</a>
+<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="https://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
+<div class="fb-like" data-href="http://betterspecs.org/#spork" data-send="false" data-layout="box_count" data-width="450" data-show-faces="true"></div>
+
</article>
<article>
@@ -692,6 +770,10 @@
</code></pre>
</div>
+<a href="https://twitter.com/share" data-text="rspec best practices | mocking http requests #betterspecs" href="https://twitter.com/share" data-url="http://betterspecs.org/#http" class="twitter-share-button" data-related="jasoncosta" data-lang="en" data-size="medium" data-counturl="http://betterspecs.org" data-count="vertical">Tweet</a>
+<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="https://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
+<div class="fb-like" data-href="http://betterspecs.org/#http" data-send="false" data-layout="box_count" data-width="450" data-show-faces="true"></div>
+
</article>
<article>
@@ -723,6 +805,10 @@
</code></pre>
</div>
+<a href="https://twitter.com/share" data-text="rspec best practices | useful formatter #betterspecs" href="https://twitter.com/share" data-url="http://betterspecs.org/#formatter" class="twitter-share-button" data-related="jasoncosta" data-lang="en" data-size="medium" data-counturl="http://betterspecs.org" data-count="vertical">Tweet</a>
+<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="https://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
+<div class="fb-like" data-href="http://betterspecs.org/#formatter" data-send="false" data-layout="box_count" data-width="450" data-show-faces="true"></div>
+
</article>
<article>
@@ -801,11 +887,20 @@
<article>
-<h1><a name="improve">Improve Better Specs</a></h1>
+<h1><a name="improving">Improving Better Specs</a></h1>
<p>
This is an open source project. If you something is missing or incorrect just file an
-issue and start discussing about the topic.
+<a class="see" href="https://github.com/andreareginato/betterspecs/issues">issue</a>
+and start discussing about the topic. Check also following issues:
+
+<ul>
+ <li>Multilanguage (file an issue if you want to translate this guide)</li>
+ <li>File an issue per best practice and link it in the documentation
+ (in this way we have a unique place to discuss each best practice)</li>
+ <li>Add missing links to named libraries</li>
+</ul>
+
</p>
</article>
@@ -831,3 +926,15 @@
</div>
</article>
+
+
+<br><br><hr><br><br>
+
+<iframe src="http://ghbtns.com/github-btn.html?user=andreareginato&repo=betterspecs&type=watch&count=true&size=large"
+ allowtransparency="true" frameborder="0" scrolling="0" width="170px" height="30px"></iframe>
+
+<iframe src="http://ghbtns.com/github-btn.html?user=andreareginato&repo=betterspecs&type=fork&count=true&size=large"
+ allowtransparency="true" frameborder="0" scrolling="0" width="170px" height="30px"></iframe>
+
+<iframe src="http://ghbtns.com/github-btn.html?user=andreareginato&repo=betterspecs&type=follow&count=true&size=large"
+ allowtransparency="true" frameborder="0" scrolling="0" width="300px" height="30px"></iframe>
Oops, something went wrong.

0 comments on commit c75a520

Please sign in to comment.