Sha256: ea1a4eae3555ebd314b1d041c9bdc266a6d70f4f080494ceaca5c38e1d117712
Contents?: true
Size: 736 Bytes
Versions: 1
Compression:
Stored size: 736 Bytes
Contents
require File.join(__FILE__.gsub(/(.*)?\/spec\/.*$/, '\1'), 'spec/spec_helper') describe "RTML actions", :type => :controller do controller_name :inherited it "should copy variables into widgets" do Rtml.action :instance_variables_test, :inherited do @instance_variable = 5 screen(:index) { @instance_variable.should == 5 } end get :instance_variables_test, :ignore_state => true response.should_not contain_errors end it "should copy variables into widgets" do Rtml.action :instance_variables_test, :inherited do @instance_variable = 5 screen(:display) { display } end get :instance_variables_test, :ignore_state => true response.should contain("value: 5") end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rtml-2.0.4 | spec/rtml_action_spec.rb |