This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
commit 464a255e31e1ec655846eae95288e0d4e6c76104
tree 4d58457e0ceab800590ededb40c87d89e5ce0992
parent 53afd3cf1d2054985b6af7a0d0fb373d7339cff3 parent 2fa415614910dcdde2b021ddd18924326b880276
tree 4d58457e0ceab800590ededb40c87d89e5ce0992
parent 53afd3cf1d2054985b6af7a0d0fb373d7339cff3 parent 2fa415614910dcdde2b021ddd18924326b880276
| name | age | message | |
|---|---|---|---|
| |
CHANGELOG | Fri Aug 22 21:30:51 -0700 2008 | |
| |
LICENSE | Thu Jan 29 13:41:48 -0800 2009 | |
| |
README | Thu Mar 20 16:39:17 -0700 2008 | |
| |
Rakefile | Fri Aug 22 21:18:01 -0700 2008 | |
| |
init.rb | Fri Aug 22 21:10:27 -0700 2008 | |
| |
install.rb | Fri Aug 22 21:18:01 -0700 2008 | |
| |
lib/ | Fri Aug 22 21:13:54 -0700 2008 | |
| |
spec/ | Fri Aug 22 21:14:09 -0700 2008 | |
| |
tasks/ | Fri Aug 22 21:18:01 -0700 2008 | |
| |
uninstall.rb | Fri Aug 22 21:18:01 -0700 2008 |
README
== HaveFilter matcher
HaveFilter matcher is a custom matcher for rspec suite. It's purpose is a testing of ActionController filters presense.
If you want to test presence of filters today, you have to do something like
@controller.before_filters.should include(:filter_name)
As for me, it just looks ugly. No, really.
I've spent some time thinking about it and made this filter. Sample usage could be found in
spec/rails/matchers/have_filter_spec.rb
I'll post some here:
@controller.should have_filter(:before_filter_method)
@controller.should have_filter(:before_filter_method).before(:any_action)
@controller.should have_filter(:after_some_actions_filter).after([:action_1, :action_2])
== Thanks
I would like to say 'thank you' to Yurii Rashkovskii (http://rashkovskii.com) and Michael Klishin
(http://novemberain.com). Without them I would never get even a half of Ruby/Rails experience that I have now.
Also, thanks goes to my lovely wife and my family. They keep me turning.







