Sha256: a44f078347d91610378beb712d529ac4c5726856652201d5ec6badf6c9b3ecb6
Contents?: true
Size: 844 Bytes
Versions: 2
Compression:
Stored size: 844 Bytes
Contents
# Copyright (c) 2006 Michael Fellinger m.fellinger@gmail.com # All files in this distribution are subject to the terms of the Ruby license. require 'spec/helper' class MainController < Ramaze::Controller template :non_existant_method, :list end class TCActionOtherLayout < Ramaze::Controller map '/other' layout '/other_wrapper' template_root __DIR__/:template def index "Others Hello" end end describe "Testing Actionless Templates" do behaves_like 'http' ramaze :actionless_templates => false it "should not find template file for non existant method" do get('/non_existant_method').status.should == 404 get('/non_existant_method2').status.should == 404 end it "should render layout(without method) for normal action" do get('/other/index').body.should == '<p>Others Hello</p>' end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ramaze-0.3.9 | spec/ramaze/controller/actionless_templates.rb |
ramaze-0.3.9.1 | spec/ramaze/controller/actionless_templates.rb |