Sha256: 116937139a150ba092d7f915faa4e7f476ae07761def6ebd87a63495794f0986
Contents?: true
Size: 645 Bytes
Versions: 5
Compression:
Stored size: 645 Bytes
Contents
require File.join(__FILE__.gsub(/(.*)?\/spec\/.*$/, '\1'), 'spec/spec_helper') describe InheritedController do it "should render #get_state from parent" do get :index, :format => :rtml #puts response.body response.should_not contain_errors response.template.template_format.should == :rtml response.should have_selector(:tml) end it "should render #index from child" do get :index, :format => :rtml, :ignore_state => true #puts response.body response.should_not contain_errors response.template.template_format.should == :rtml response.should have_selector(:screen, :id => "overridden") end end
Version data entries
5 entries across 5 versions & 1 rubygems