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

Version Path
curation_concerns-1.7.8 spec/views/curation_concerns/admin/index.html.erb_spec.rb
curation_concerns-1.7.7 spec/views/curation_concerns/admin/index.html.erb_spec.rb
curation_concerns-2.0.0 spec/views/curation_concerns/admin/index.html.erb_spec.rb
curation_concerns-2.0.0.rc2 spec/views/curation_concerns/admin/index.html.erb_spec.rb
curation_concerns-1.7.6 spec/views/curation_concerns/admin/index.html.erb_spec.rb
curation_concerns-1.7.5 spec/views/curation_concerns/admin/index.html.erb_spec.rb
curation_concerns-1.7.4 spec/views/curation_concerns/admin/index.html.erb_spec.rb
curation_concerns-1.7.3 spec/views/curation_concerns/admin/index.html.erb_spec.rb
curation_concerns-1.7.2 spec/views/curation_concerns/admin/index.html.erb_spec.rb
curation_concerns-2.0.0.rc1 spec/views/curation_concerns/admin/index.html.erb_spec.rb
curation_concerns-1.7.1 spec/views/curation_concerns/admin/index.html.erb_spec.rb
curation_concerns-1.7.0 spec/views/curation_concerns/admin/index.html.erb_spec.rb
curation_concerns-1.7.0.beta1 spec/views/curation_concerns/admin/index.html.erb_spec.rb