Changeset 1109
- Timestamp:
- 12/14/07 11:54:43 (1 year ago)
- Files:
-
- trunk/spec/merb/controller_spec.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/spec/merb/controller_spec.rb
r1102 r1109 14 14 c._layout.should == :application 15 15 end 16 16 17 17 it "should have a spec helper to dispatch that skips the router" do 18 18 Merb::Router.should_not_receive(:match) 19 19 dispatch_to(Bar, :foo, :id => "1") do |controller| 20 controller.should_receive(:foo).with("1") 20 if defined? ParseTreeArray # We have parameterized actions 21 controller.should_receive(:foo).with("1") 22 else 23 controller.should_receive(:foo) # No parameterized actions 24 controller.params[:id].should == "1" 25 end 21 26 end 22 27 end
