Sha256: 9d96c173c15f3a69461643599ad09dcf44afe02d292a9991b5f9538e39c8998c
Contents?: true
Size: 848 Bytes
Versions: 3
Compression:
Stored size: 848 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' def index "Others Hello" end end describe "Testing Actionless Templates" do behaves_like 'http' ramaze :actionless_templates => false, :view_root => __DIR__/:view 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
3 entries across 3 versions & 3 rubygems