public
Rubygem
Description: Merb Core: All you need. None you don't.
Homepage: http://www.merbivore.com
Clone URL: git://github.com/wycats/merb-core.git
spec for ticket 307

Signed-off-by: Michael S. Klishin <michael@novemberain.com>
deimos1986 (author)
Fri May 09 04:42:17 -0700 2008
michaelklishin (committer)
Fri May 09 05:07:19 -0700 2008
commit  4168deb572c352ab0824056f8ddc3c35dd9694f7
tree    3b9a6ddf44af9e63da4f6679524d4b70417c50c8
parent  df3506337fcc45091ded1ccb50cd92a1d71ff228
...
78
79
80
 
 
 
 
 
 
 
 
 
81
82
83
...
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
0
@@ -78,6 +78,15 @@ describe Merb::AbstractController, " should support before and after filters" do
0
     running { dispatch_should_make_body("TestConditionalFilterWithNoProcOrSymbol", "") }.should raise_error(ArgumentError, /a Symbol or a Proc/)
0
   end
0
   
0
+ it "should throw an error if an unknown option is passed to a filter" do
0
+ running { Merb::Test::Fixtures::Abstract.class_eval do
0
+
0
+ class TestErrorFilter < Merb::Test::Fixtures::Abstract::Testing
0
+ before :foo, :except => :index
0
+ end
0
+ end }.should raise_error(ArgumentError, /known filter options/)
0
+ end
0
+
0
   it "should support passing an argument to a before filter method" do
0
     dispatch_should_make_body("TestBeforeFilterWithArgument", "index action")
0
   end

Comments

    No one has commented yet.