Sha256: 2cbc9b8f777c5d9666bcb1ee39c9371b8d9941eca12d90514154f796fa4a603f
Contents?: true
Size: 709 Bytes
Versions: 3
Compression:
Stored size: 709 Bytes
Contents
# encoding: utf-8 require File.join(File.dirname(__FILE__), '../test_helper') class RailsViewTest < ActiveSupport::TestCase context "A cell view" do context "calling render :partial" do should "render the cell partial in bassist/dii" do BassistCell.class_eval do def compose; @partial = "dii"; render; end end assert_equal "Dumm Dii", render_cell(:bassist, :compose) end should "render the cell partial in bad_guitarist/dii" do BassistCell.class_eval do def compose; @partial = "bad_guitarist/dii"; render; end end assert_equal "Dumm Dooom", render_cell(:bassist, :compose) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
cells-3.4.0.beta3 | test/rails/view_test.rb |
cells-3.4.0.beta2 | test/rails/view_test.rb |
cells-3.4.0.beta1 | test/rails/view_test.rb |