Skip to content

Commit

Permalink
Update 2014-02-14-testing-sinatra-helpers-with-rspec.md
Browse files Browse the repository at this point in the history
* correct broken links
  • Loading branch information
netzfisch committed Feb 14, 2014
1 parent 98aa53e commit 304ae87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _posts/2014-02-14-testing-sinatra-helpers-with-rspec.md
Expand Up @@ -14,12 +14,12 @@ helpers do
end
{% endhighlight %}

But [**Rspec**][2] keept me sending **NoMethod Errors**:
But [**Rspec**][3] keept me sending **NoMethod Errors**:

NoMethodError:
undefined method `human_date' for #<Sinatra::Application ...

Than I learned in the context of the [Padrino][3] framework, that this is a "special" **Sinatra** feature - so called "shorthand helpers". Because above statement is shorthand for:
Than I learned in the context of the [Padrino][4] framework, that this is a "special" **Sinatra** feature - so called "shorthand helpers". Because above statement is shorthand for:

{% highlight ruby %}
helpers = Module.new do
Expand Down

0 comments on commit 304ae87

Please sign in to comment.