Sha256: 910604582473487315b173a7493241e56b13f30eda1551de9cde7b5ba944b897

Contents?: true

Size: 572 Bytes

Versions: 4

Compression:

Stored size: 572 Bytes

Contents

require 'test_helper'

class RailsViewTest < ActiveSupport::TestCase
  include Cell::TestCase::TestMethods
  
  context "A cell view" do
    context "calling render :partial" do
      should "render the local cell partial in bassist/dii" do
        assert_equal("Dii", in_view(:bassist) do
          render :partial => 'dii'
        end)
      end
      
      should "render the foreign cell partial in bad_guitarist/dii" do
        assert_equal("Dooom", in_view(:bassist) do
          render :partial => "bad_guitarist/dii"
        end)
      end
    end
    
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
cells-3.5.0 test/rails/view_test.rb
cells-3.5.0.beta2 test/rails/view_test.rb
cells-3.5.0.beta1 test/rails/view_test.rb
cells-3.4.4 test/rails/view_test.rb