Sha256: 7c4e531f97979498293c1629820f531cacffb3a1da2409d65abc954720bf2a9f
Contents?: true
Size: 613 Bytes
Versions: 1
Compression:
Stored size: 613 Bytes
Contents
require File.dirname(__FILE__) + '/../../../../test/test_helper' require File.dirname(__FILE__) + '/testing_helper' class MyTestCell < Cell::Base def state_with_instance_var @my_ivar = "value from cell" render end end class CellsTest < ActionController::TestCase include CellsTestMethods def test_controller_overriding_cell_ivars @controller.class_eval do attr_accessor :my_ivar end @controller.my_ivar = "value from controller" cell = MyTestCell.new(@controller) c = cell.render_state(:state_with_instance_var) assert_equal "value from cell", c end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cells-2.3.0 | test/bugs_test.rb |