Sha256: 27bb586fa4c7c731e3445bf009cbd43b66c7bbbd8c67cd78865d689cddc79be7
Contents?: true
Size: 676 Bytes
Versions: 13
Compression:
Stored size: 676 Bytes
Contents
require 'spec_helper' describe 'curation_concerns/admin/index.html.erb', type: :view do before do assign(:configuration, configuration) allow(view).to receive(:action_name).and_return(:index) stub_template 'curation_concerns/admin/_my_view_1.html.erb' => 'Mine 1' stub_template 'curation_concerns/admin/_my_view_2.html.erb' => 'Another One' end let(:configuration) do { actions: { index: { partials: [ "my_view_1", "my_view_2" ] } } } end it "renders all the partials" do render expect(rendered).to have_content("Mine 1") expect(rendered).to have_content("Another One") end end
Version data entries
13 entries across 13 versions & 1 rubygems